File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 10
10
#include <linux/platform_device.h>
11
11
12
12
#include <linux/backlight.h>
13
- #include <linux/fb.h>
14
13
15
14
#include <linux/mfd/pcf50633/core.h>
16
15
#include <linux/mfd/pcf50633/backlight.h>
@@ -53,7 +52,7 @@ static int pcf50633_bl_update_status(struct backlight_device *bl)
53
52
54
53
55
54
if (bl -> props .state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK ) ||
56
- bl -> props .power != FB_BLANK_UNBLANK )
55
+ bl -> props .power != BACKLIGHT_POWER_ON )
57
56
new_brightness = 0 ;
58
57
else if (bl -> props .brightness < pcf_bl -> brightness_limit )
59
58
new_brightness = bl -> props .brightness ;
@@ -106,7 +105,7 @@ static int pcf50633_bl_probe(struct platform_device *pdev)
106
105
memset (& bl_props , 0 , sizeof (bl_props ));
107
106
bl_props .type = BACKLIGHT_RAW ;
108
107
bl_props .max_brightness = 0x3f ;
109
- bl_props .power = FB_BLANK_UNBLANK ;
108
+ bl_props .power = BACKLIGHT_POWER_ON ;
110
109
111
110
if (pdata ) {
112
111
bl_props .brightness = pdata -> default_brightness ;
You can’t perform that action at this time.
0 commit comments