Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
Merge branch 'phy_checkpatch'
Browse files Browse the repository at this point in the history
Florian Fainelli says:

====================
net: phy: fix checkpatch errors

This patchset fixes trivial checkpatch errors, no functional change
introduced.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
davem330 committed Dec 18, 2013
2 parents a58f7f8 + 7aff967 commit cea883b
Show file tree
Hide file tree
Showing 10 changed files with 153 additions and 153 deletions.
4 changes: 2 additions & 2 deletions drivers/net/phy/cicada.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ static int cis820x_config_intr(struct phy_device *phydev)
{
int err;

if(phydev->interrupts == PHY_INTERRUPT_ENABLED)
err = phy_write(phydev, MII_CIS8201_IMASK,
if (phydev->interrupts == PHY_INTERRUPT_ENABLED)
err = phy_write(phydev, MII_CIS8201_IMASK,
MII_CIS8201_IMASK_MASK);
else
err = phy_write(phydev, MII_CIS8201_IMASK, 0);
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/phy/davicom.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static int dm9161_config_intr(struct phy_device *phydev)
if (temp < 0)
return temp;

if(PHY_INTERRUPT_ENABLED == phydev->interrupts )
if (PHY_INTERRUPT_ENABLED == phydev->interrupts)
temp &= ~(MII_DM9161_INTR_STOP);
else
temp |= MII_DM9161_INTR_STOP;
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/phy/dp83640.c
Original file line number Diff line number Diff line change
Expand Up @@ -851,8 +851,8 @@ static int match(struct sk_buff *skb, unsigned int type, struct rxts *rxts)

seqid = (u16 *)(data + offset + OFF_PTP_SEQUENCE_ID);

return (rxts->msgtype == (*msgtype & 0xf) &&
rxts->seqid == ntohs(*seqid));
return rxts->msgtype == (*msgtype & 0xf) &&
rxts->seqid == ntohs(*seqid);
}

static void dp83640_free_clocks(void)
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/phy/icplus.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ MODULE_LICENSE("GPL");
static int ip175c_config_init(struct phy_device *phydev)
{
int err, i;
static int full_reset_performed = 0;
static int full_reset_performed;

if (full_reset_performed == 0) {

Expand Down
4 changes: 2 additions & 2 deletions drivers/net/phy/lxt.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static int lxt970_config_intr(struct phy_device *phydev)
{
int err;

if(phydev->interrupts == PHY_INTERRUPT_ENABLED)
if (phydev->interrupts == PHY_INTERRUPT_ENABLED)
err = phy_write(phydev, MII_LXT970_IER, MII_LXT970_IER_IEN);
else
err = phy_write(phydev, MII_LXT970_IER, 0);
Expand Down Expand Up @@ -114,7 +114,7 @@ static int lxt971_config_intr(struct phy_device *phydev)
{
int err;

if(phydev->interrupts == PHY_INTERRUPT_ENABLED)
if (phydev->interrupts == PHY_INTERRUPT_ENABLED)
err = phy_write(phydev, MII_LXT971_IER, MII_LXT971_IER_IEN);
else
err = phy_write(phydev, MII_LXT971_IER, 0);
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/phy/mdio_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ static int mdio_bus_match(struct device *dev, struct device_driver *drv)
if (phydrv->match_phy_device)
return phydrv->match_phy_device(phydev);

return ((phydrv->phy_id & phydrv->phy_id_mask) ==
(phydev->phy_id & phydrv->phy_id_mask));
return (phydrv->phy_id & phydrv->phy_id_mask) ==
(phydev->phy_id & phydrv->phy_id_mask);
}

#ifdef CONFIG_PM
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/phy/micrel.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ static int ksz_config_flags(struct phy_device *phydev)
}

static int kszphy_extended_write(struct phy_device *phydev,
u32 regnum, u16 val)
u32 regnum, u16 val)
{
phy_write(phydev, MII_KSZPHY_EXTREG, KSZPHY_EXTREG_WRITE | regnum);
return phy_write(phydev, MII_KSZPHY_EXTREG_WRITE, val);
}

static int kszphy_extended_read(struct phy_device *phydev,
u32 regnum)
u32 regnum)
{
phy_write(phydev, MII_KSZPHY_EXTREG, regnum);
return phy_read(phydev, MII_KSZPHY_EXTREG_READ);
Expand Down
Loading

0 comments on commit cea883b

Please sign in to comment.