]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pinctrl: cy8c95x0: Fix off-by-one in the regmap range settings
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 3 Feb 2025 13:10:27 +0000 (15:10 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 3 Feb 2025 13:33:43 +0000 (14:33 +0100)
commit6f36f103cff1737094f2187b1f9a7b312820d377
treeabc97adfb3d0eff736d618d2eb576c7132598a45
parent2014c95afecee3e76ca4a56956a936e23283f05b
pinctrl: cy8c95x0: Fix off-by-one in the regmap range settings

The range_max is inclusive, so we need to use the number of
the last accessible register address.

Fixes: 8670de9fae49 ("pinctrl: cy8c95x0: Use regmap ranges")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/20250203131506.3318201-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-cy8c95x0.c