summaryrefslogtreecommitdiff
path: root/lib/vsprintf.c
diff options
context:
space:
mode:
authorMichael Walle <[email protected]>2011-10-27 11:31:35 +0000
committerWolfgang Denk <[email protected]>2011-12-20 22:57:25 +0100
commitfea7dcae506bfbc3f67f8ed6a415d4f45914ee9b (patch)
tree21e78f3fef4225d0d6bd916221cc4cc41c59e38d /lib/vsprintf.c
parent19a5944fcd623f1793ce57569171f617200e4b15 (diff)
net: introduce per device index
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 <[email protected]> Cc: Prafulla Wadaskar <[email protected]> Cc: Mike Frysinger <[email protected]> Cc: Wolfgang Denk <[email protected]> Acked-by: Mike Frysinger <[email protected]>
Diffstat (limited to 'lib/vsprintf.c')
0 files changed, 0 insertions, 0 deletions