pinctrl: cy8c95x0: Use single I2C lock
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Tue, 21 May 2024 15:25:57 +0000 (17:25 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 17 Jun 2024 07:25:19 +0000 (09:25 +0200)
commitf71aba339a66be54253006935648f56c7cbc1ed9
treeabff20a5a94a17b8b60776632ea93b7166db9527
parentc501b780c17fd10b172ba61fdebc20ddb8f27149
pinctrl: cy8c95x0: Use single I2C lock

Currently there are 3 locks being used when accessing the chip, one
in the driver and one in each regmap. Reduce that to one driver only
lock that protects all regmap and regcache accesses.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20240521152602.1097764-1-patrick.rudolph@9elements.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-cy8c95x0.c