mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
platform/x86: thinkpad_acpi: Fix thinklight LED brightness returning 255
Reading the thinklight LED brightnes while the LED is on returns
255 (LED_FULL) but we advertise a max_brightness of 1, so this should
be 1 (LED_ON).
Fixes: db5e2a4ca0
("platform/x86: thinkpad_acpi: Fix max_brightness of thinklight")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230127235723.412864-1-hdegoede@redhat.com
This commit is contained in:
parent
abce209d18
commit
eebf82012d
1 changed files with 1 additions and 1 deletions
|
@ -5563,7 +5563,7 @@ static int light_sysfs_set(struct led_classdev *led_cdev,
|
|||
|
||||
static enum led_brightness light_sysfs_get(struct led_classdev *led_cdev)
|
||||
{
|
||||
return (light_get_status() == 1) ? LED_FULL : LED_OFF;
|
||||
return (light_get_status() == 1) ? LED_ON : LED_OFF;
|
||||
}
|
||||
|
||||
static struct tpacpi_led_classdev tpacpi_led_thinklight = {
|
||||
|
|
Loading…
Reference in a new issue