net: dsa: mt7530: use unlocked regmap accessors
authorDaniel Golle <daniel@makrotopia.org>
Mon, 3 Apr 2023 01:17:40 +0000 (02:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Apr 2023 09:13:00 +0000 (10:13 +0100)
commit1bd099c49f65ed923b9f19b8c4b3cd1ff0024091
tree6eb8fc045fde6bd30255862e01273ea8e0f494aa
parent9ecc00164dc2300dfcd40afe549a8ee951dfea9f
net: dsa: mt7530: use unlocked regmap accessors

Instead of wrapping the locked register accessor functions, use the
unlocked variants and add locking wrapper functions to let regmap
handle the locking.

This is a preparation towards being able to always use regmap to
access switch registers instead of open-coded accessor functions.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mt7530.c