net/ethernet: A device driver api uses struct device *dev
Always use struct device *dev as first parameter for a device driver API. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
353acf4aae
commit
5ebc86bdc6
4 changed files with 12 additions and 13 deletions
|
@ -133,7 +133,7 @@ struct ethernet_api {
|
|||
* should be set by driver if statistics needs to be collected
|
||||
* for that driver.
|
||||
*/
|
||||
struct net_stats_eth *(*get_stats)(struct net_if *iface);
|
||||
struct net_stats_eth *(*get_stats)(struct device *dev);
|
||||
#endif
|
||||
|
||||
/** Get the device capabilities */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue