We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5145531 commit fe1328bCopy full SHA for fe1328b
drivers/video/backlight/gpio_backlight.c
@@ -87,8 +87,7 @@ static int gpio_backlight_probe(struct platform_device *pdev)
87
/* Not booted with device tree or no phandle link to the node */
88
bl->props.power = def_value ? FB_BLANK_UNBLANK
89
: FB_BLANK_POWERDOWN;
90
- else if (gpiod_get_direction(gbl->gpiod) == 0 &&
91
- gpiod_get_value_cansleep(gbl->gpiod) == 0)
+ else if (gpiod_get_value_cansleep(gbl->gpiod) == 0)
92
bl->props.power = FB_BLANK_POWERDOWN;
93
else
94
bl->props.power = FB_BLANK_UNBLANK;
0 commit comments