Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5d31e0f authored by Denis Kirjanov's avatar Denis Kirjanov Committed by David S. Miller
Browse files

ns83820: Use predefined autoneg constants

parent 3c083edc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
}