Skip to content
Snippets Groups Projects
Commit e62db9d5 authored by Stefan Eichenberger's avatar Stefan Eichenberger Committed by Lee Jones
Browse files

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: default avatarStefan Eichenberger <eichest@gmail.com>
Link: https://lore.kernel.org/r/20230918143238.75600-1-eichest@gmail.com


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent 799107c1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment