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/dsa/b53 | |
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/dsa/b53')
-rw-r--r-- | drivers/net/dsa/b53/b53_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/b53/b53_common.c b/drivers/net/dsa/b53/b53_common.c index 3867f3d4545f..a3b98992f180 100644 --- a/drivers/net/dsa/b53/b53_common.c +++ b/drivers/net/dsa/b53/b53_common.c @@ -2186,7 +2186,7 @@ int b53_eee_init(struct dsa_switch *ds, int port, struct phy_device *phy) { int ret; - ret = phy_init_eee(phy, 0); + ret = phy_init_eee(phy, false); if (ret) return 0; |