File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ static int picolcd_set_brightness(struct backlight_device *bdev)
31
31
data -> lcd_brightness = bdev -> props .brightness & 0x0ff ;
32
32
data -> lcd_power = bdev -> props .power ;
33
33
spin_lock_irqsave (& data -> lock , flags );
34
- hid_set_field (report -> field [0 ], 0 , data -> lcd_power == FB_BLANK_UNBLANK ? data -> lcd_brightness : 0 );
34
+ hid_set_field (report -> field [0 ], 0 ,
35
+ data -> lcd_power == BACKLIGHT_POWER_ON ? data -> lcd_brightness : 0 );
35
36
if (!(data -> status & PICOLCD_FAILED ))
36
37
hid_hw_request (data -> hdev , report , HID_REQ_SET_REPORT );
37
38
spin_unlock_irqrestore (& data -> lock , flags );
@@ -94,7 +95,7 @@ void picolcd_suspend_backlight(struct picolcd_data *data)
94
95
if (!data -> backlight )
95
96
return ;
96
97
97
- data -> backlight -> props .power = FB_BLANK_POWERDOWN ;
98
+ data -> backlight -> props .power = BACKLIGHT_POWER_OFF ;
98
99
picolcd_set_brightness (data -> backlight );
99
100
data -> lcd_power = data -> backlight -> props .power = bl_power ;
100
101
}
You can’t perform that action at this time.
0 commit comments