aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/surface/surface_platform_profile.c
diff options
context:
space:
mode:
authorMario Limonciello <[email protected]>2024-12-06 03:18:59 +0000
committerIlpo Järvinen <[email protected]>2024-12-10 17:17:49 +0000
commit6f5e63ddc333dae371be6f8a8f70a82043697a4c (patch)
treeceaee05891abd9cfd95eaf49ea86dacec6c024af /drivers/platform/surface/surface_platform_profile.c
parentplatform/x86/dell: dell-pc: Create platform device (diff)
downloadkernel-6f5e63ddc333dae371be6f8a8f70a82043697a4c.tar.gz
kernel-6f5e63ddc333dae371be6f8a8f70a82043697a4c.zip
ACPI: platform_profile: Add device pointer into platform profile handler
In order to let platform profile handlers manage platform profile for their driver the core code will need a pointer to the device. Add this to the structure and use it in the trivial driver cases. Reviewed-by: Armin Wolf <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Reviewed-by: Maximilian Luz <[email protected]> Reviewed-by: Mark Pearson <[email protected]> Signed-off-by: Mario Limonciello <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'drivers/platform/surface/surface_platform_profile.c')
-rw-r--r--drivers/platform/surface/surface_platform_profile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/surface/surface_platform_profile.c b/drivers/platform/surface/surface_platform_profile.c
index 9d3e3f945818..b73cfdd920c6 100644
--- a/drivers/platform/surface/surface_platform_profile.c
+++ b/drivers/platform/surface/surface_platform_profile.c
@@ -212,6 +212,7 @@ static int surface_platform_profile_probe(struct ssam_device *sdev)
tpd->sdev = sdev;
tpd->handler.name = "Surface Platform Profile";
+ tpd->handler.dev = &sdev->dev;
tpd->handler.profile_get = ssam_platform_profile_get;
tpd->handler.profile_set = ssam_platform_profile_set;