]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: replace dev->trans_start accesses with dev_trans_start
authorFlorian Westphal <fw@strlen.de>
Tue, 3 May 2016 14:30:59 +0000 (16:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2016 18:16:47 +0000 (14:16 -0400)
commitdb602ea05004f89f07b3b69f701cdb8f09460eb9
tree5b9669cf865a386f3e1943c8e1db39dfdaeecfd6
parent2c4db01fa4f0bcceb5c769fe6da42dec99b27f17
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>
drivers/infiniband/ulp/ipoib/ipoib_main.c
drivers/net/ethernet/intel/e1000e/netdev.c
drivers/net/ethernet/intel/igb/igb_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/microchip/encx24j600.c
drivers/net/ethernet/qualcomm/qca_spi.c
drivers/net/fjes/fjes_main.c
drivers/net/hamradio/mkiss.c
drivers/staging/rtl8192e/rtllib_softmac.c
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c