mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 05:50:52 +07:00
ns83820: Use predefined autoneg constants
Signed-off-by: Denis Kirjanov <dkirjanov@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3c083edc6d
commit
a5d31e0faf
@ -1298,7 +1298,8 @@ static int ns83820_get_settings(struct net_device *ndev,
|
||||
cmd->speed = SPEED_10;
|
||||
break;
|
||||
}
|
||||
cmd->autoneg = (tbicr & TBICR_MR_AN_ENABLE) ? 1: 0;
|
||||
cmd->autoneg = (tbicr & TBICR_MR_AN_ENABLE)
|
||||
? AUTONEG_ENABLE : AUTONEG_DISABLE;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user