]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: Replace ad-hoc bit manipulation with regmap
authorMarek Vasut <marex@denx.de>
Tue, 25 Jun 2019 23:43:48 +0000 (01:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Jun 2019 18:00:32 +0000 (11:00 -0700)
commit4502f2cf385f4d468a1265c9915c677a7235912a
tree4873661270da47846372ac30efbf61609d3abe21
parent55a32216b7e2afaadf44e1aa3c1b8fb7ae14f69f
net: dsa: microchip: Replace ad-hoc bit manipulation with regmap

Regmap provides bit manipulation functions to set/clear bits, use those
insted of reimplementing them.

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz9477.c