diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-02-02 23:30:20 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-02-07 08:55:32 +0100 |
commit | 3d8cc9f822224ca3af3055b921cb278950f29228 (patch) | |
tree | 486b1268e492b5fcdab87154b0dc68f572bc3e0f /drivers/video/Kconfig | |
parent | bfa76583c12407d9ef8cf59e02b95297ec19f845 (diff) | |
download | barebox-3d8cc9f822224ca3af3055b921cb278950f29228.tar.gz barebox-3d8cc9f822224ca3af3055b921cb278950f29228.tar.xz |
gpiolib: implement gpiod_set_value
Linux gpiod_set_value is silent if the GPIO descriptor is NULL, but
barebox warns about it. Also having gpio_set_value not respect active
low/high, while Linux gpiod_set_value respects it is error-prone.
Add a new gpiod_set_value function that covers this. gpio == -ENOENT is
taken as the dummy value for optional GPIOs.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220202223023.341817-2-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/video/Kconfig')
0 files changed, 0 insertions, 0 deletions