Skip to content

Commit 48c41b9

Browse files
Steve GlendinningJeff Garzik
authored andcommitted
Rename SMSC phy functions to be more generic
Several models of SMSC PHY have the same interrupt status and mask registers as the LAN83C185, so these functions can service multiple different PHY drivers. Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
1 parent 5d12b13 commit 48c41b9

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎drivers/net/phy/smsc.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
(MII_LAN83C185_ISF_INT6 | MII_LAN83C185_ISF_INT4)
3939

4040

41-
static int lan83c185_config_intr(struct phy_device *phydev)
41+
static int smsc_phy_config_intr(struct phy_device *phydev)
4242
{
4343
int rc = phy_write (phydev, MII_LAN83C185_IM,
4444
((PHY_INTERRUPT_ENABLED == phydev->interrupts)
@@ -48,16 +48,16 @@ static int lan83c185_config_intr(struct phy_device *phydev)
4848
return rc < 0 ? rc : 0;
4949
}
5050

51-
static int lan83c185_ack_interrupt(struct phy_device *phydev)
51+
static int smsc_phy_ack_interrupt(struct phy_device *phydev)
5252
{
5353
int rc = phy_read (phydev, MII_LAN83C185_ISF);
5454

5555
return rc < 0 ? rc : 0;
5656
}
5757

58-
static int lan83c185_config_init(struct phy_device *phydev)
58+
static int smsc_phy_config_init(struct phy_device *phydev)
5959
{
60-
return lan83c185_ack_interrupt (phydev);
60+
return smsc_phy_ack_interrupt (phydev);
6161
}
6262

6363

@@ -73,11 +73,11 @@ static struct phy_driver lan83c185_driver = {
7373
/* basic functions */
7474
.config_aneg = genphy_config_aneg,
7575
.read_status = genphy_read_status,
76-
.config_init = lan83c185_config_init,
76+
.config_init = smsc_phy_config_init,
7777

7878
/* IRQ related */
79-
.ack_interrupt = lan83c185_ack_interrupt,
80-
.config_intr = lan83c185_config_intr,
79+
.ack_interrupt = smsc_phy_ack_interrupt,
80+
.config_intr = smsc_phy_config_intr,
8181

8282
.driver = { .owner = THIS_MODULE, }
8383
};

0 commit comments

Comments
 (0)