]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
platform/x86: sony-laptop: Don't turn off 0x153 keyboard backlight during probe
authorHans de Goede <hdegoede@redhat.com>
Tue, 13 Dec 2022 12:29:43 +0000 (13:29 +0100)
committerHans de Goede <hdegoede@redhat.com>
Tue, 27 Dec 2022 11:23:11 +0000 (12:23 +0100)
commitad75bd85b1db69c97eefea07b375567821f6ef58
tree5422645e594fc9d9327942224c5b03484567b07a
parent1b929c02afd37871d5afb9d498426f83432e71c2
platform/x86: sony-laptop: Don't turn off 0x153 keyboard backlight during probe

The 0x153 version of the kbd backlight control SNC handle has no separate
address to probe if the backlight is there.

This turns the probe call into a set keyboard backlight call with a value
of 0 turning off the keyboard backlight.

Skip probing when there is no separate probe address to avoid this.

Link: https://bugzilla.redhat.com/show_bug.cgi?id=1583752
Fixes: 800f20170dcf ("Keyboard backlight control for some Vaio Fit models")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Mattia Dongili <malattia@linux.it>
Link: https://lore.kernel.org/r/20221213122943.11123-1-hdegoede@redhat.com
drivers/platform/x86/sony-laptop.c