]> git.sur5r.net Git - u-boot/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)
committerTom Rini <trini@konsulko.com>
Thu, 21 May 2015 13:13:20 +0000 (09:13 -0400)
commitfd3056337e6fcc140f400e11edd33f6f1cb37de1
treed6c39687cff48c4f4600d63468814a4cf51fef37
parent73c2bbeea3d09bb8c81adc8769fc53493b6c0351
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