leds: aw200xx: Enable disable_locking flag in regmap config
authorGeorge Stark <gnstark@salutedevices.com>
Sat, 25 Nov 2023 20:05:15 +0000 (23:05 +0300)
committerLee Jones <lee@kernel.org>
Wed, 13 Dec 2023 11:28:59 +0000 (11:28 +0000)
In the driver regmap is always used under mutex so regmap's inner lock
can be disabled.

Signed-off-by: George Stark <gnstark@salutedevices.com>
Signed-off-by: Dmitry Rokosov <ddrokosov@salutedevices.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20231125200519.1750-8-ddrokosov@salutedevices.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-aw200xx.c

index d4877722eb564752a6d3b390de3efe323ea53188..220860258dec2b3710a158f974469e4b7184f1e0 100644 (file)
@@ -526,6 +526,7 @@ static const struct regmap_config aw200xx_regmap_config = {
        .rd_table = &aw200xx_readable_table,
        .wr_table = &aw200xx_writeable_table,
        .cache_type = REGCACHE_MAPLE,
+       .disable_locking = true,
 };
 
 static int aw200xx_probe(struct i2c_client *client)