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)
commitd4bcd99cd9d63db1813a23cbdeb2e03b86a86379
tree4873661270da47846372ac30efbf61609d3abe21
parent255b59ad0db213d693028e52a4b69a98f2381db7
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