Commit 06a4a740 authored by Ying Liu's avatar Ying Liu Committed by sanglipeng
Browse files

backlight: gpio_backlight: Drop output GPIO direction check for initial power state

stable inclusion
from stable-v5.10.195
commit 934d29b9fa912ff6028d4abb8c787bdac8f4fa80
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I95JOC

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=934d29b9fa912ff6028d4abb8c787bdac8f4fa80



--------------------------------

[ Upstream commit fe1328b5 ]

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

Fixes: 706dc681 ("backlight: gpio: Explicitly set the direction of the GPIO")
Signed-off-by: default avatarLiu Ying <victor.liu@nxp.com>
Reviewed-by: default avatarAndy Shevchenko <andy@kernel.org>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Acked-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/r/20230721093342.1532531-1-victor.liu@nxp.com


Signed-off-by: default avatarLee Jones <lee@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent ea664b24
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment