]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: et131x: change function name
authorZHAO Gang <gamerh2o@gmail.com>
Wed, 4 Dec 2013 07:24:12 +0000 (15:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2013 23:21:13 +0000 (15:21 -0800)
Change function name from et1310_phy_power_down to et1310_phy_power_switch
to better describe its functionality.

Signed-off-by: ZHAO Gang <gamerh2o@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/et131x/et131x.c

index ca36b04d3c1b357957207f6685b46aff687e276e..fe6619a520a8f3c1209898ec5e747ddb84cff9d3 100644 (file)
@@ -1679,7 +1679,7 @@ static int et131x_mdio_reset(struct mii_bus *bus)
        return 0;
 }
 
-/*     et1310_phy_power_down   -       PHY power control
+/*     et1310_phy_power_switch -       PHY power control
  *     @adapter: device to control
  *     @down: true for off/false for back on
  *
@@ -1688,7 +1688,7 @@ static int et131x_mdio_reset(struct mii_bus *bus)
  *     Can't you see that this code processed
  *     Phy power, phy power..
  */
-static void et1310_phy_power_down(struct et131x_adapter *adapter, bool down)
+static void et1310_phy_power_switch(struct et131x_adapter *adapter, bool down)
 {
        u16 data;
 
@@ -1938,7 +1938,7 @@ static void et131x_adapter_setup(struct et131x_adapter *adapter)
 
        et1310_config_macstat_regs(adapter);
 
-       et1310_phy_power_down(adapter, 0);
+       et1310_phy_power_switch(adapter, 0);
        et131x_xcvr_init(adapter);
 }