]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdec5d111e950af2575e2c985c1af89e4e2bdb31b
treee1a0783d4d72f64223b2b1eaccfd8424357d67fd
parent75fa0ac9289bdb4264e3982bb59939eb9d80a34f
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