# Re: \[PATCH 3/3\] backlight: pwm\_bl: don't use GPIOF\_\* with gpiod\_get\_direction

- From: Lee Jones \<hidden\>
- Date: 2018-04-16 09:11:15 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2018/04/5262648
- Thread: https://ratatoskr.run/linux-gpio/2018/01/5179996/t.md

```text
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
```
