Skip to content

Commit eebf820

Browse files
committed
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: db5e2a4 ("platform/x86: thinkpad_acpi: Fix max_brightness of thinklight") Signed-off-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent abce209 commit eebf820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/platform/x86/thinkpad_acpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5563,7 +5563,7 @@ static int light_sysfs_set(struct led_classdev *led_cdev,
55635563

55645564
static enum led_brightness light_sysfs_get(struct led_classdev *led_cdev)
55655565
{
5566-
return (light_get_status() == 1) ? LED_FULL : LED_OFF;
5566+
return (light_get_status() == 1) ? LED_ON : LED_OFF;
55675567
}
55685568

55695569
static struct tpacpi_led_classdev tpacpi_led_thinklight = {

0 commit comments

Comments
 (0)