diff options
author | Rajat Jain <rajatja@google.com> | 2022-01-07 11:02:06 -0800 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2022-01-10 12:17:37 +0100 |
commit | 30598d925d466c53c4c218a58f80e043cfe9b085 (patch) | |
tree | 36f18c5df9338fe87af1be984e244a3c06076848 /drivers/platform/x86 | |
parent | 3dbc84a595d17f64f14fcea00120d31e33e98880 (diff) | |
download | linux-stable-30598d925d466c53c4c218a58f80e043cfe9b085.tar.gz linux-stable-30598d925d466c53c4c218a58f80e043cfe9b085.tar.bz2 linux-stable-30598d925d466c53c4c218a58f80e043cfe9b085.zip |
drm/privacy_screen: Add drvdata in drm_privacy_screen
Allow a privacy screen provider to stash its private data pointer in the
drm_privacy_screen, and update the drm_privacy_screen_register() call to
accept that. Also introduce a *_get_drvdata() so that it can retrieved
back when needed.
This also touches the IBM Thinkpad platform driver, the only user of
privacy screen today, to pass NULL for now to the updated API.
Signed-off-by: Rajat Jain <rajatja@google.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220107190208.95479-1-rajatja@google.com
Diffstat (limited to 'drivers/platform/x86')
-rw-r--r-- | drivers/platform/x86/thinkpad_acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 341655d711ce..ccbfda2b0095 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -9782,7 +9782,7 @@ static int tpacpi_lcdshadow_init(struct ibm_init_struct *iibm) return 0; lcdshadow_dev = drm_privacy_screen_register(&tpacpi_pdev->dev, - &lcdshadow_ops); + &lcdshadow_ops, NULL); if (IS_ERR(lcdshadow_dev)) return PTR_ERR(lcdshadow_dev); |