File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 5
5
6
6
#include <linux/backlight.h>
7
7
#include <linux/err.h>
8
- #include <linux/fb.h>
9
8
#include <linux/gpio/consumer.h>
10
9
#include <linux/init.h>
11
10
#include <linux/kernel.h>
@@ -81,12 +80,12 @@ static int gpio_backlight_probe(struct platform_device *pdev)
81
80
/* Set the initial power state */
82
81
if (!of_node || !of_node -> phandle )
83
82
/* Not booted with device tree or no phandle link to the node */
84
- bl -> props .power = def_value ? FB_BLANK_UNBLANK
85
- : FB_BLANK_POWERDOWN ;
83
+ bl -> props .power = def_value ? BACKLIGHT_POWER_ON
84
+ : BACKLIGHT_POWER_OFF ;
86
85
else if (gpiod_get_value_cansleep (gbl -> gpiod ) == 0 )
87
- bl -> props .power = FB_BLANK_POWERDOWN ;
86
+ bl -> props .power = BACKLIGHT_POWER_OFF ;
88
87
else
89
- bl -> props .power = FB_BLANK_UNBLANK ;
88
+ bl -> props .power = BACKLIGHT_POWER_ON ;
90
89
91
90
bl -> props .brightness = 1 ;
92
91
You can’t perform that action at this time.
0 commit comments