Inline those functions into smsc95xx_mdio_{read,write}() to get
rid of the wrapper.

Signed-off-by: Marek Vasut <ma...@denx.de>
Cc: David S. Miller <da...@davemloft.net>
Cc: Nisar Sayed <nisar.sa...@microchip.com>
Cc: Woojung Huh <woojung....@microchip.com>
Cc: Andrew Lunn <and...@lunn.ch>
Cc: Florian Fainelli <f.faine...@gmail.com>
Cc: linux-...@vger.kernel.org
To: netdev@vger.kernel.org
---
 drivers/net/usb/smsc95xx.c | 17 +++--------------
 1 file changed, 3 insertions(+), 14 deletions(-)

diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c
index 1ab7e6fa6d7a..551d05eb258e 100644
--- a/drivers/net/usb/smsc95xx.c
+++ b/drivers/net/usb/smsc95xx.c
@@ -165,7 +165,7 @@ static int __must_check __smsc95xx_phy_wait_not_busy(struct 
usbnet *dev)
        return -EIO;
 }
 
-static int __smsc95xx_mdio_read(struct net_device *netdev, int phy_id, int idx)
+static int smsc95xx_mdio_read(struct net_device *netdev, int phy_id, int idx)
 {
        struct usbnet *dev = netdev_priv(netdev);
        u32 val, addr;
@@ -209,8 +209,8 @@ static int __smsc95xx_mdio_read(struct net_device *netdev, 
int phy_id, int idx)
        return ret;
 }
 
-static void __smsc95xx_mdio_write(struct net_device *netdev, int phy_id,
-                                 int idx, int regval)
+static void smsc95xx_mdio_write(struct net_device *netdev, int phy_id,
+                               int idx, int regval)
 {
        struct usbnet *dev = netdev_priv(netdev);
        u32 val, addr;
@@ -252,17 +252,6 @@ static void __smsc95xx_mdio_write(struct net_device 
*netdev, int phy_id,
        mutex_unlock(&dev->phy_mutex);
 }
 
-static int smsc95xx_mdio_read(struct net_device *netdev, int phy_id, int idx)
-{
-       return __smsc95xx_mdio_read(netdev, phy_id, idx);
-}
-
-static void smsc95xx_mdio_write(struct net_device *netdev, int phy_id, int idx,
-                               int regval)
-{
-       __smsc95xx_mdio_write(netdev, phy_id, idx, regval);
-}
-
 static int __must_check smsc95xx_wait_eeprom(struct usbnet *dev)
 {
        unsigned long start_time = jiffies;
-- 
2.19.2

Reply via email to