net: dsa: ar9331: Use maple tree register cache
authorMark Brown <broonie@kernel.org>
Wed, 12 Jul 2023 23:45:58 +0000 (00:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jul 2023 07:43:20 +0000 (08:43 +0100)
commit88085b3b83f55eab1be57f4eb0f69446717f23fb
treea9a1e6e7b8d9e0c8ed8bf4f2e1c83b5c2769106a
parentf63cfa103be9b16c4491f1d58bbef3616fc61a92
net: dsa: ar9331: Use maple tree register cache

We now have a regmap cache which uses a maple tree to store the register
state, this is a more modern data structure and the regmap level code
using it makes a number of assumptions better tuned for modern hardware
than those made by the rbtree cache type that the at9331 driver uses.
Switch the ar9331 driver to use the more modern data structure.

This should have minimal practical impact, it's mainly code
modernisation.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca/ar9331.c