net: phy: adin1100: Simplify register value passing
The additional use case for that variable is gone, the expression is simple enough to pass it inline now. Signed-off-by: Alexander Dahl <ada@thorsis.com> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Acked-by: Nuno Sá <nuno.sa@analog.com> Link: https://patch.msgid.link/20251119124737.280939-3-ada@thorsis.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
bccaf1fe08
commit
5894cab4e1
|
|
@ -192,11 +192,10 @@ static irqreturn_t adin_phy_handle_interrupt(struct phy_device *phydev)
|
|||
static int adin_set_powerdown_mode(struct phy_device *phydev, bool en)
|
||||
{
|
||||
int ret;
|
||||
int val;
|
||||
|
||||
val = en ? ADIN_CRSM_SFT_PD_CNTRL_EN : 0;
|
||||
ret = phy_write_mmd(phydev, MDIO_MMD_VEND1,
|
||||
ADIN_CRSM_SFT_PD_CNTRL, val);
|
||||
ADIN_CRSM_SFT_PD_CNTRL,
|
||||
en ? ADIN_CRSM_SFT_PD_CNTRL_EN : 0);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue