mfd: axp20x: Update to use maple tree register cache
authorMark Brown <broonie@kernel.org>
Wed, 12 Jul 2023 11:14:43 +0000 (12:14 +0100)
committerLee Jones <lee@kernel.org>
Fri, 18 Aug 2023 20:48:01 +0000 (21:48 +0100)
commitcdc707f72e7b45c951457929866e4d6759928166
tree896dca0fcda1ee550535e87e44e6ceaab202918b
parentc8f2e7f9bcb2e7263c33fb554bb285de12c26f55
mfd: axp20x: Update to use maple tree register cache

The maple tree register cache is based on a much more modern data structure
than the rbtree cache and makes optimisation choices which are probably
more appropriate for modern systems than those made by the rbtree cache. In
v6.5 it has also acquired the ability to generate multi-register writes in
sync operations, bringing performance up to parity with the rbtree cache
there.

Update the axp20x driver to use the more modern data structure, really it
should have been fine even without the most recent round of updates.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230712-mfd-axp20x-maple-v1-1-4df3749107a6@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/axp20x.c