File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1425,18 +1425,17 @@ static int ideapad_kbd_bl_init(struct ideapad_private *priv)
1425
1425
if (WARN_ON (priv -> kbd_bl .initialized ))
1426
1426
return - EEXIST ;
1427
1427
1428
- brightness = ideapad_kbd_bl_brightness_get (priv );
1429
- if (brightness < 0 )
1430
- return brightness ;
1431
-
1432
- priv -> kbd_bl .last_brightness = brightness ;
1433
-
1434
1428
if (ideapad_kbd_bl_check_tristate (priv -> kbd_bl .type )) {
1435
1429
priv -> kbd_bl .led .max_brightness = 2 ;
1436
1430
} else {
1437
1431
priv -> kbd_bl .led .max_brightness = 1 ;
1438
1432
}
1439
1433
1434
+ brightness = ideapad_kbd_bl_brightness_get (priv );
1435
+ if (brightness < 0 )
1436
+ return brightness ;
1437
+
1438
+ priv -> kbd_bl .last_brightness = brightness ;
1440
1439
priv -> kbd_bl .led .name = "platform::" LED_FUNCTION_KBD_BACKLIGHT ;
1441
1440
priv -> kbd_bl .led .brightness_get = ideapad_kbd_bl_led_cdev_brightness_get ;
1442
1441
priv -> kbd_bl .led .brightness_set_blocking = ideapad_kbd_bl_led_cdev_brightness_set ;
You can’t perform that action at this time.
0 commit comments