linux/drivers/net/ethernet/microchip
Florian Westphal 4d0e965732 drivers: replace dev->trans_start accesses with dev_trans_start
a trans_start struct member exists twice:
- in struct net_device (legacy)
- in struct netdev_queue

Instead of open-coding dev->trans_start usage to obtain the current
trans_start value, use dev_trans_start() instead.

This is not exactly the same, as dev_trans_start also considers
the trans_start values of the netdev queues owned by the device
and provides the most recent one.

For legacy devices this doesn't matter as dev_trans_start can cope
with netdev trans_start values of 0 (they are ignored).

This is a prerequisite to eventual removal of dev->trans_start.

Cc: linux-rdma@vger.kernel.org
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-05-04 14:16:47 -04:00
..
enc28j60_hw.h
enc28j60.c net: ethernet: enc28j60: add device tree support 2016-04-29 16:23:02 -04:00
encx24j600_hw.h net: Microchip encx24j600 driver 2015-10-08 04:49:55 -07:00
encx24j600-regmap.c net: Microchip encx24j600 driver 2015-10-08 04:49:55 -07:00
encx24j600.c drivers: replace dev->trans_start accesses with dev_trans_start 2016-05-04 14:16:47 -04:00
Kconfig net: encx24j600: Fix typos in Kconfig 2015-10-11 05:26:10 -07:00
Makefile net: Microchip encx24j600 driver 2015-10-08 04:49:55 -07:00