diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-02-25 14:37:12 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-02-25 15:16:22 +0100 |
commit | 67d938b2ea46615a2923c55def4a923241e02843 (patch) | |
tree | 84fc52ef9a1debf1368a5852aca733fa508dce10 /include | |
parent | 2c5404651091e985c9009aa417d80fdaf50d7a68 (diff) | |
download | barebox-67d938b2ea46615a2923c55def4a923241e02843.tar.gz barebox-67d938b2ea46615a2923c55def4a923241e02843.tar.xz |
net: use container_of instead of dev->type_data
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/net.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h index 10267933c8..2eec47fb52 100644 --- a/include/net.h +++ b/include/net.h @@ -48,6 +48,8 @@ struct eth_device { struct list_head list; }; +#define dev_to_edev(d) container_of(d, struct eth_device, dev) + int eth_register(struct eth_device* dev); /* Register network device */ void eth_unregister(struct eth_device* dev); /* Unregister network device */ |