diff options
author | Lucas Stach <dev@lynxeye.de> | 2012-08-22 11:04:57 +0000 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2012-09-26 12:36:29 -0500 |
commit | e1dbdf9109a2739862ccd3c39be0b8ee37721cb6 (patch) | |
tree | 0fba403d87c4f1841ba7b83144e4d0ef0e34f1f7 /include/usb_ether.h | |
parent | 8a0eccb1056b313b45ab62e3aac400f339aa71b4 (diff) |
net: introduce transparent driver private in ueth_data
Avoid clutter in ueth_data. Individual drivers should not mess
with structures belonging to the core like this.
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Reviewed-by: Marek Vasut <marex@denx.de>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/usb_ether.h')
-rw-r--r-- | include/usb_ether.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/usb_ether.h b/include/usb_ether.h index a7fb26bf7c..7c7aecb305 100644 --- a/include/usb_ether.h +++ b/include/usb_ether.h @@ -50,12 +50,8 @@ struct ueth_data { unsigned char protocol; /* .............. */ unsigned char irqinterval; /* Intervall for IRQ Pipe */ - /* private fields for each driver can go here if needed */ -#ifdef CONFIG_USB_ETHER_SMSC95XX - size_t rx_urb_size; /* maximum USB URB size */ - u32 mac_cr; /* MAC control register value */ - int have_hwaddr; /* 1 if we have a hardware MAC address */ -#endif + /* driver private */ + void *dev_priv; }; /* |