]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: thinkpad_acpi: Fix thinklight LED brightness returning 255
authorHans de Goede <hdegoede@redhat.com>
Fri, 27 Jan 2023 23:57:23 +0000 (00:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 10:28:07 +0000 (11:28 +0100)
commitd71ab75f96a12e47e47ead3237a437fd975ab24a
tree6e897c69e281b61b9b08e81bc3358692c10781c1
parent6f02dea5eb626eee45b747cd5abbfdcd3dfe33d6
platform/x86: thinkpad_acpi: Fix thinklight LED brightness returning 255

[ Upstream commit 4cee7aca3ef60af339eeab728a9b748ca1721d55 ]

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: 6ca8c828257a ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/x86/thinkpad_acpi.c