pinctrl: cy8c95x0: Enable regmap locking for debug
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 3 Feb 2025 13:10:29 +0000 (15:10 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 3 Feb 2025 13:34:13 +0000 (14:34 +0100)
commitaac4470fa6e695e4d6ac94cc77d4690b57f1d2bc
tree89a813331bdc1352e1a571e75ccf6c880e99733b
parent3fbe3fe28764455e4fc3578afb9765f46f9ce93d
pinctrl: cy8c95x0: Enable regmap locking for debug

When regmap locking is disabled, debugfs is also disabled.
Enable locking for debug when CONFIG_DEBUG_PINCTRL is set.

Fixes: f71aba339a66 ("pinctrl: cy8c95x0: Use single I2C lock")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/20250203131506.3318201-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-cy8c95x0.c