aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/hp/hp-wmi.c
diff options
context:
space:
mode:
authorKurt Borja <[email protected]>2025-01-16 00:27:04 +0000
committerIlpo Järvinen <[email protected]>2025-01-16 15:26:25 +0000
commit249c576f0f9d0556cb7473b8a437b30239afbd16 (patch)
tree32144fa48c6617078a540b46df5f899e2c7ef084 /drivers/platform/x86/hp/hp-wmi.c
parentACPI: platform_profile: Replace *class_dev member with class_dev (diff)
downloadkernel-249c576f0f9d0556cb7473b8a437b30239afbd16.tar.gz
kernel-249c576f0f9d0556cb7473b8a437b30239afbd16.zip
ACPI: platform_profile: Let drivers set drvdata to the class device
Add *drvdata to platform_profile_register() signature and assign it to the class device. While at it, pass specific driver state as drvdata to replace uses of container_of() with dev_get_drvdata(). Reviewed-by: Mario Limonciello <[email protected]> Signed-off-by: Kurt Borja <[email protected]> Reviewed-by: Mark Pearson <[email protected]> Tested-by: Mark Pearson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'drivers/platform/x86/hp/hp-wmi.c')
-rw-r--r--drivers/platform/x86/hp/hp-wmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/hp/hp-wmi.c b/drivers/platform/x86/hp/hp-wmi.c
index 6d6e13a0c6e2..8e5e1422e024 100644
--- a/drivers/platform/x86/hp/hp-wmi.c
+++ b/drivers/platform/x86/hp/hp-wmi.c
@@ -1629,7 +1629,7 @@ static int thermal_profile_setup(struct platform_device *device)
set_bit(PLATFORM_PROFILE_BALANCED, platform_profile_handler.choices);
set_bit(PLATFORM_PROFILE_PERFORMANCE, platform_profile_handler.choices);
- err = platform_profile_register(&platform_profile_handler);
+ err = platform_profile_register(&platform_profile_handler, NULL);
if (err)
return err;