diff options
author | 2022-01-23 23:22:41 +0800 | |
---|---|---|
committer | 2022-01-24 17:09:56 -0800 | |
commit | 53243d412ec59e2937f1e25beaa0fdca3259227f (patch) | |
tree | 9dce93594b89f0ade28f4d4b924835d0debdb74e /drivers/net/ethernet/marvell/mvneta.c | |
parent | net: fec_ptp: remove redundant initialization of variable val (diff) | |
download | linux-53243d412ec59e2937f1e25beaa0fdca3259227f.tar.gz linux-53243d412ec59e2937f1e25beaa0fdca3259227f.tar.bz2 linux-53243d412ec59e2937f1e25beaa0fdca3259227f.zip |
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/ethernet/marvell/mvneta.c')
-rw-r--r-- | drivers/net/ethernet/marvell/mvneta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index 309bd3e97ea0..57c708b55685 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -4212,7 +4212,7 @@ static void mvneta_mac_link_up(struct phylink_config *config, mvneta_port_up(pp); if (phy && pp->eee_enabled) { - pp->eee_active = phy_init_eee(phy, 0) >= 0; + pp->eee_active = phy_init_eee(phy, false) >= 0; mvneta_set_eee(pp, pp->eee_active && pp->tx_lpi_enabled); } } |