summaryrefslogtreecommitdiff
path: root/drivers/acpi/video_detect.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2024-08-14 22:01:58 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-08-19 16:58:45 +0300
commitb5f0943001339c4d324a1af10470ce0bdd79f966 (patch)
tree08e602ca912c50f3a158b939557e377a37ebaaf8 /drivers/acpi/video_detect.c
parentcd8e468efb4fb2742e06328a75b282c35c1abf8d (diff)
downloadlinux-b5f0943001339c4d324a1af10470ce0bdd79f966.tar.xz
platform/x86: dell-uart-backlight: Use acpi_video_get_backlight_type()
The dell-uart-backlight driver supports backlight control on Dell All In One (AIO) models using a backlight controller board connected to an UART. In DSDT this uart port will be defined as: Name (_HID, "DELL0501") Name (_CID, EisaId ("PNP0501") Now the first AIO has turned up which has not only the DSDT bits for this, but also an actual controller attached to the UART, yet it is not using this controller for backlight control. Use the acpi_video_get_backlight_type() function from the ACPI video-detect code to check if the dell-uart-backlight driver should actually be used. This allows reusing the existing ACPI video-detect infra to override the backlight control method on the commandline or with DMI quirks. Fixes: 484bae9e4d6a ("platform/x86: Add new Dell UART backlight driver") Cc: All applicable <stable@vger.kernel.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Andy Shevchenko <andy@kernel.org> Link: https://patch.msgid.link/20240814190159.15650-3-hdegoede@redhat.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/video_detect.c')
0 files changed, 0 insertions, 0 deletions