Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: sx150x: Use maple tree register cache

The sx150x driver uses a rbtree register cache with no obvious reason for
specifically preferring it. The maple tree register cache is based on a
more modern data structure and makes implementation decisions more suitable
for modern systems so let's switch the driver to use that. No functional
change.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/20240924-pinctl-sx150x-maple-v1-1-17dcfefefd17@kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Mark Brown and committed by
Linus Walleij
d1c7bf9c af8e4812

+1 -1
+1 -1
drivers/pinctrl/pinctrl-sx150x.c
··· 1105 1105 .reg_bits = 8, 1106 1106 .val_bits = 32, 1107 1107 1108 - .cache_type = REGCACHE_RBTREE, 1108 + .cache_type = REGCACHE_MAPLE, 1109 1109 1110 1110 .reg_read = sx150x_regmap_reg_read, 1111 1111 .reg_write = sx150x_regmap_reg_write,