]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: Replace bit RMW with regmap
authorMarek Vasut <marex@denx.de>
Thu, 27 Jun 2019 21:55:56 +0000 (23:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jun 2019 02:25:02 +0000 (19:25 -0700)
commit0db2a6cb917d00d5b3a25a793e8bd895ec0998b2
treed153ca78c45647491c8f39c033b5866c94870831
parent416748df5b359e01b0f8741482e9bf1eb56ea177
net: dsa: microchip: Replace bit RMW with regmap

Regmap provides read-modify-write function to update bitfields in
registers. Replace ad-hoc read-modify-write with regmap_update_bits()
where applicable.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Tristram Ha <Tristram.Ha@microchip.com>
Cc: Woojung Huh <Woojung.Huh@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz9477.c