leds: lp55xx: Use gpiod_set_value_cansleep()
authorStefan Eichenberger <eichest@gmail.com>
Mon, 18 Sep 2023 14:32:38 +0000 (16:32 +0200)
committerLee Jones <lee@kernel.org>
Wed, 1 Nov 2023 11:28:42 +0000 (11:28 +0000)
commit7c977019c53ed2689e5509ebd1d89a424cf3d313
tree5f592cb84243bb671f9ec57da0561ac950a54bdf
parente3c9d952139c1eb42f35bdcdcb85a66a72587b34
leds: lp55xx: Use gpiod_set_value_cansleep()

Use gpiod_set_value_cansleep in the init_device function. Without this
change, the driver may print a warning if the LP55xx enable pin is
connected to a GPIO chip which can sleep (e.g. a GPIO expander):

WARNING: CPU: 0 PID: 2719 at drivers/gpio/gpiolib.c:3051 gpiod_set_value+0x64/0xbc

Signed-off-by: Stefan Eichenberger <eichest@gmail.com>
Link: https://lore.kernel.org/r/20230918143238.75600-1-eichest@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-lp55xx-common.c