diff options
author | Jisheng Zhang <jszhang@kernel.org> | 2022-01-23 18:22:41 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-01-25 04:09:56 +0300 |
commit | 53243d412ec59e2937f1e25beaa0fdca3259227f (patch) | |
tree | 9dce93594b89f0ade28f4d4b924835d0debdb74e /drivers/net/dsa/mt7530.c | |
parent | 6e667749271e58d34238cf700e543beabdbe6184 (diff) | |
download | linux-53243d412ec59e2937f1e25beaa0fdca3259227f.tar.xz |
net: use bool values to pass bool param of phy_init_eee()
The 2nd param of phy_init_eee(): clk_stop_enable is a bool param, use
true or false instead of 1/0.
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20220123152241.1480-1-jszhang@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/dsa/mt7530.c')
-rw-r--r-- | drivers/net/dsa/mt7530.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c index b82512e5b33b..bc77a26c825a 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -2846,7 +2846,7 @@ static void mt753x_phylink_mac_link_up(struct dsa_switch *ds, int port, mcr |= PMCR_RX_FC_EN; } - if (mode == MLO_AN_PHY && phydev && phy_init_eee(phydev, 0) >= 0) { + if (mode == MLO_AN_PHY && phydev && phy_init_eee(phydev, false) >= 0) { switch (speed) { case SPEED_1000: mcr |= PMCR_FORCE_EEE1G; |