backlight: gpio_backlight: Drop output GPIO direction check for initial power state
authorYing Liu <victor.liu@nxp.com>
Fri, 21 Jul 2023 09:29:03 +0000 (09:29 +0000)
committerLee Jones <lee@kernel.org>
Fri, 28 Jul 2023 11:00:11 +0000 (12:00 +0100)
commitfe1328b5b2a087221e31da77e617f4c2b70f3b7f
treef545b6dd43a62c8cf7baea3f2010b87e699af044
parent5145531be5fbad0e914d1dc1cbd392d7b756abaa
backlight: gpio_backlight: Drop output GPIO direction check for initial power state

So, let's drop output GPIO direction check and only check GPIO value to set
the initial power state.

Fixes: 706dc68102bc ("backlight: gpio: Explicitly set the direction of the GPIO")
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/r/20230721093342.1532531-1-victor.liu@nxp.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/backlight/gpio_backlight.c