You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
net: phy: Fix data type in DP83822 dp8382x_disable_wol()
[ Upstream commit 0d6835ffe5 ]
The last argument of phy_clear_bits_mmd(..., u16 val); is u16 and not
int, just inline the value into the function call arguments.
No functional change.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
cca6127587
commit
e78a0b4a33
@@ -305,11 +305,9 @@ static int dp83822_config_intr(struct phy_device *phydev)
|
||||
|
||||
static int dp8382x_disable_wol(struct phy_device *phydev)
|
||||
{
|
||||
int value = DP83822_WOL_EN | DP83822_WOL_MAGIC_EN |
|
||||
DP83822_WOL_SECURE_ON;
|
||||
|
||||
return phy_clear_bits_mmd(phydev, DP83822_DEVADDR,
|
||||
MII_DP83822_WOL_CFG, value);
|
||||
return phy_clear_bits_mmd(phydev, DP83822_DEVADDR, MII_DP83822_WOL_CFG,
|
||||
DP83822_WOL_EN | DP83822_WOL_MAGIC_EN |
|
||||
DP83822_WOL_SECURE_ON);
|
||||
}
|
||||
|
||||
static int dp83822_read_status(struct phy_device *phydev)
|
||||
|
||||
Reference in New Issue
Block a user