diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-06-27 15:31:52 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-06-28 13:52:12 +0100 |
commit | 7d322a4497e4bfc45b7cc59f88c435d1cd2d3fef (patch) | |
tree | 489dceb35c9a87ff7825ed237811647e6b06847f /drivers/bus | |
parent | 67b0bf3781cc3df3b710b91c7368a625695c932e (diff) |
net: phylink: simplify ksettings_set() implementation
Simplify the ksettings_set() implementation to look more like phylib's
implementation; use a switch() for validating the autoneg setting, and
use the linkmode_modify() helper to set the autoneg bit in the
advertisement mask.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers/bus')
0 files changed, 0 insertions, 0 deletions