]> Git Repo - linux.git/commit
platform/x86: ideapad-laptop: Set max_brightness before using it
authorStuart Hayhurst <[email protected]>
Tue, 14 Nov 2023 11:38:08 +0000 (11:38 +0000)
committerIlpo Järvinen <[email protected]>
Wed, 15 Nov 2023 12:30:51 +0000 (14:30 +0200)
commit7a3c36eef9a5d13b16aa954da54224c9c6bed339
tree78164cea3670089a7d763305e8272075fbb0abdf
parent9fadd4509966e375952f31ae954ab5eae76f90fe
platform/x86: ideapad-laptop: Set max_brightness before using it

max_brightness is used in ideapad_kbd_bl_brightness_get() before it's set,
causing ideapad_kbd_bl_brightness_get() to return -EINVAL sometimes.

Fixes: ecaa1867b524 ("platform/x86: ideapad-laptop: Add support for keyboard backlights using KBLC ACPI symbol")
Signed-off-by: Stuart Hayhurst <[email protected]>
Cc: [email protected]
Reviewed-by: Ilpo Järvinen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ilpo Järvinen <[email protected]>
drivers/platform/x86/ideapad-laptop.c
This page took 0.053994 seconds and 4 git commands to generate.