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

Regmap provides polling function to poll for bits in a register. This
function is another reimplementation of polling for bit being clear in
a register. Replace this with regmap polling function. Moreover, inline
the function parameters, as the function is never called with any other
parameter values than this one.

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