drm/privacy-screen: Add X86 specific arch init code
authorHans de Goede <hdegoede@redhat.com>
Tue, 5 Oct 2021 20:23:15 +0000 (22:23 +0200)
committerHans de Goede <hdegoede@redhat.com>
Thu, 14 Oct 2021 11:12:24 +0000 (13:12 +0200)
commitbefe5404a00b3b1547c944738df4a9229909bdc9
tree183574898c41c1f21552ad437c53c7f944ca0f1e
parenta1a98689301b9af0313e4c1ba44558e8b67ff76e
drm/privacy-screen: Add X86 specific arch init code

Add X86 specific arch init code, which fills the privacy-screen lookup
table by checking for various vendor specific ACPI interfaces for
controlling the privacy-screen.

This initial version only checks for the Lenovo Thinkpad specific ACPI
methods for privacy-screen control.

Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211005202322.700909-4-hdegoede@redhat.com
drivers/gpu/drm/Makefile
drivers/gpu/drm/drm_privacy_screen_x86.c [new file with mode: 0644]
include/drm/drm_privacy_screen_machine.h