[PATCH 03/22] LoongArch: Use acpi_video_get_backlight_types()
Akihiko Odaki
akihiko.odaki at daynix.com
Mon Oct 24 11:34:54 UTC 2022
acpi_video_get_backlight_type() is now deprecated.
Signed-off-by: Akihiko Odaki <akihiko.odaki at daynix.com>
---
drivers/platform/loongarch/loongson-laptop.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/platform/loongarch/loongson-laptop.c b/drivers/platform/loongarch/loongson-laptop.c
index f0166ad5d2c2..3b54b4cefedb 100644
--- a/drivers/platform/loongarch/loongson-laptop.c
+++ b/drivers/platform/loongarch/loongson-laptop.c
@@ -454,9 +454,9 @@ static int __init event_init(struct generic_sub_driver *sub_driver)
/*
* This hotkey driver handle backlight event when
- * acpi_video_get_backlight_type() gets acpi_backlight_vendor
+ * acpi_video_get_backlight_types() gets ACPI_BACKLIGHT_VENDOR
*/
- if (acpi_video_get_backlight_type() == acpi_backlight_vendor)
+ if ((acpi_video_get_backlight_types() & ACPI_BACKLIGHT_VENDOR))
hotkey_backlight_set(true);
else
hotkey_backlight_set(false);
--
2.37.3
More information about the dri-devel
mailing list