linux-yocto/drivers/platform
Yao Zi e347edbf56 platform/loongarch: laptop: Add backlight power control support
commit 53c762b47f upstream.

loongson_laptop_turn_{on,off}_backlight() are designed for controlling
the power of the backlight, but they aren't really used in the driver
previously.

Unify these two functions since they only differ in arguments passed to
ACPI method, and wire up loongson_laptop_backlight_update() to update
the power state of the backlight as well. Tested on the TongFang L860-T2
Loongson-3A5000 laptop.

Cc: stable@vger.kernel.org
Fixes: 6246ed0911 ("LoongArch: Add ACPI-based generic laptop driver")
Signed-off-by: Yao Zi <ziyao@disroot.org>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-06-27 11:07:40 +01:00
..
chrome platform/chrome: cros_ec_typec: fix missing fwnode reference decrement 2024-12-14 19:54:02 +01:00
goldfish
loongarch platform/loongarch: laptop: Add backlight power control support 2025-06-27 11:07:40 +01:00
mellanox
mips
olpc
surface platform/surface: aggregator_registry: Add support for Surface Laptop Go 3 2024-09-18 19:23:03 +02:00
x86 platform/x86: ideapad-laptop: add missing Ideapad Pro 5 fn keys 2025-06-27 11:07:40 +01:00
Kconfig
Makefile