[U-Boot] [PATCH 1/2] net: introduce per device index
Michael Walle
michael at walle.cc
Thu Oct 27 23:36:37 CEST 2011
Am Donnerstag 27 Oktober 2011, 23:31:35 schrieb Michael Walle:
> Instead of counting the device index everytime a functions needs it, store
> it in the eth_device struct. eth_register() keeps track of the indices and
> updates the device's index number. This simplifies some functions in
> net/eth.c.
>
> Additionally, a network driver can now query its index, eg. to get the
> correct environment ethaddr name.
>
> Signed-off-by: Michael Walle <michael at walle.cc>
> Cc: Prafulla Wadaskar <prafulla at marvell.com>
> Cc: Mike Frysinger <vapier at gentoo.com>
sorry mike, i'll fix this for v2 ;)
--
Michael
More information about the U-Boot
mailing list