]> Gentwo Git Trees - linux/.git/commit
pinctrl: bcm281xx: Fix incorrect regmap max_registers value
authorArtur Weber <aweber.kernel@gmail.com>
Fri, 7 Feb 2025 20:02:41 +0000 (21:02 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 16 Feb 2025 23:15:50 +0000 (00:15 +0100)
commitb34fbbdbaeae88c4d958f2bbe2d84a7850de6adc
tree3ea3d21c78fa2a0d7c3f991ee5606d1800d92f3a
parent0ad2507d5d93f39619fc42372c347d6006b64319
pinctrl: bcm281xx: Fix incorrect regmap max_registers value

The max_registers value does not take into consideration the stride;
currently, it's set to the number of the last pin, but this does not
accurately represent the final register.

Fix this by multiplying the current value by 4.

Fixes: 54b1aa5a5b16 ("ARM: pinctrl: Add Broadcom Capri pinctrl driver")
Signed-off-by: Artur Weber <aweber.kernel@gmail.com>
Link: https://lore.kernel.org/20250207-bcm21664-pinctrl-v1-2-e7cfac9b2d3b@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/bcm/pinctrl-bcm281xx.c