r8169: add helper tp_to_dev
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 20 Mar 2018 06:45:42 +0000 (07:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 15:47:52 +0000 (11:47 -0400)
commit1e1205b7d3e992439b812f59fe0e79bd99b8c79a
treee1a0783d4d72f64223b2b1eaccfd8424357d67fd
parent73c86ee38b98203fc7ebc1006e4ffe22342107c3
r8169: add helper tp_to_dev

In several places struct device is referenced by using &tp->pci_dev->dev.
Add helper tp_to_dev() to improve code readability.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c