1
0
Fork 0

Add missing match_phy_device static qualifiers

main
Nathan L. Conrad 5 years ago
parent 2d7ba73672
commit c149c08b6d

@ -908,7 +908,7 @@ static int ksz8895_switch_config_init(struct phy_device *phydev)
* PHY 5. Addresses 0x01-0x1F of the actual bus will be used by the 5 PHYs and * PHY 5. Addresses 0x01-0x1F of the actual bus will be used by the 5 PHYs and
* SMI registers. * SMI registers.
*/ */
int ksz8895_switch_match_phy_device(struct phy_device *phydev) static int ksz8895_switch_match_phy_device(struct phy_device *phydev)
{ {
return (phydev->phy_id & KSZ8895_PHY_ID_MASK) == return (phydev->phy_id & KSZ8895_PHY_ID_MASK) ==
(KSZ8895_PHY_ID & KSZ8895_PHY_ID_MASK) && (KSZ8895_PHY_ID & KSZ8895_PHY_ID_MASK) &&
@ -931,7 +931,7 @@ static int ksz8895_phy_5_config_init(struct phy_device *phydev)
} }
/* See ksz8895_switch_match_phy_device */ /* See ksz8895_switch_match_phy_device */
int ksz8895_phy_5_match_phy_device(struct phy_device *phydev) static int ksz8895_phy_5_match_phy_device(struct phy_device *phydev)
{ {
return (phydev->phy_id & KSZ8895_PHY_ID_MASK) == return (phydev->phy_id & KSZ8895_PHY_ID_MASK) ==
(KSZ8895_PHY_ID & KSZ8895_PHY_ID_MASK) && (KSZ8895_PHY_ID & KSZ8895_PHY_ID_MASK) &&

Loading…
Cancel
Save