From: Wolfram Sang <wsa+renesas@sang-engineering.com> Date: 2018-01-14 21:07:46
The documentation was wrong, gpiod_get_direction() returns 0/1 instead of the
GPIOF_* flags. The docs were fixed with commit 94fc73094abe47 ("gpio: correct
docs about return value of gpiod_get_direction"). Now, fix the users who got it
as wrong as I did when developing bus recovery for the R-Car I2C driver.
We get rid of two users of 'linux/gpio.h' this way :)
Only build tested due to no hardware.
Wolfram Sang (3):
extcon: int3496: don't use GPIOF_* with gpiod_get_direction
serial: mxs-auart: don't use GPIOF_* with gpiod_get_direction
backlight: pwm_bl: don't use GPIOF_* with gpiod_get_direction
drivers/extcon/extcon-intel-int3496.c | 4 ++--
drivers/tty/serial/mxs-auart.c | 3 +--
drivers/video/backlight/pwm_bl.c | 6 +++---
3 files changed, 6 insertions(+), 7 deletions(-)
--
2.11.0
From: Wolfram Sang <wsa+renesas@sang-engineering.com> Date: 2018-01-14 21:08:27
The documentation was wrong, gpiod_get_direction() returns 0/1 instead
of the GPIOF_* flags. The docs were fixed with commit 94fc73094abe47
("gpio: correct docs about return value of gpiod_get_direction"). Now,
fix this user (until a better, system-wide solution is in place).
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
Only build tested!
drivers/video/backlight/pwm_bl.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
From: Daniel Thompson <hidden> Date: 2018-01-15 10:13:30
On 14/01/18 21:07, Wolfram Sang wrote:
The documentation was wrong, gpiod_get_direction() returns 0/1 instead
of the GPIOF_* flags. The docs were fixed with commit 94fc73094abe47
("gpio: correct docs about return value of gpiod_get_direction"). Now,
fix this user (until a better, system-wide solution is in place).
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
From: Lee Jones <hidden> Date: 2018-04-16 09:11:15
On Sun, 14 Jan 2018, Wolfram Sang wrote:
The documentation was wrong, gpiod_get_direction() returns 0/1 instead
of the GPIOF_* flags. The docs were fixed with commit 94fc73094abe47
("gpio: correct docs about return value of gpiod_get_direction"). Now,
fix this user (until a better, system-wide solution is in place).
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
Only build tested!
drivers/video/backlight/pwm_bl.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Applied with Daniel and Simon's Acks.
--
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog