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:
Tomasz Bursztyka 2018-07-26 10:04:47 +02:00 committed by Jukka Rissanen
commit 5ebc86bdc6
4 changed files with 12 additions and 13 deletions

View file

@ -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 */