diff options
author | Hans de Goede <hdegoede@redhat.com> | 2021-10-05 22:23:15 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2021-10-14 13:12:24 +0200 |
commit | befe5404a00b3b1547c944738df4a9229909bdc9 (patch) | |
tree | 183574898c41c1f21552ad437c53c7f944ca0f1e /include/drm/drm_privacy_screen_machine.h | |
parent | a1a98689301b9af0313e4c1ba44558e8b67ff76e (diff) | |
download | linux-befe5404a00b3b1547c944738df4a9229909bdc9.tar.gz |
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
Diffstat (limited to 'include/drm/drm_privacy_screen_machine.h')
-rw-r--r-- | include/drm/drm_privacy_screen_machine.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/drm/drm_privacy_screen_machine.h b/include/drm/drm_privacy_screen_machine.h index aaa0d38cce92..02e5371904d3 100644 --- a/include/drm/drm_privacy_screen_machine.h +++ b/include/drm/drm_privacy_screen_machine.h @@ -31,11 +31,16 @@ struct drm_privacy_screen_lookup { void drm_privacy_screen_lookup_add(struct drm_privacy_screen_lookup *lookup); void drm_privacy_screen_lookup_remove(struct drm_privacy_screen_lookup *lookup); +#if IS_ENABLED(CONFIG_DRM_PRIVACY_SCREEN) && IS_ENABLED(CONFIG_X86) +void drm_privacy_screen_lookup_init(void); +void drm_privacy_screen_lookup_exit(void); +#else static inline void drm_privacy_screen_lookup_init(void) { } static inline void drm_privacy_screen_lookup_exit(void) { } +#endif #endif |