]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
net: Use env callbacks for net variables
authorJoe Hershberger <joe.hershberger@ni.com>
Wed, 20 May 2015 19:27:23 +0000 (14:27 -0500)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:43:16 +0000 (22:43 +0200)
commit6900a64d3c03d04e8e59679c0a3a92a3c90c1875
tree155abf701d12d48bbe95eca975ac71d2ee37bd66
parentf6d3416eb22818f34d79fa3bd162fac7cac71f08
net: Use env callbacks for net variables

Instead of checking for changes to the env each time we enter the
net_loop, use the env callbacks to update the values of the variables.
Don't update the variables when the source was programmatic, since the
variables were the source of the new value.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/env_callback.h
net/net.c