Unverified Commit 549de562 authored by Mario Limonciello's avatar Mario Limonciello Committed by Ilpo Järvinen
Browse files

ACPI: platform-profile: Add a name member to handlers



In order to prepare for allowing multiple handlers, introduce
a name field that can be used to distinguish between different
handlers.

Tested-by: default avatarMark Pearson <mpearson-lenovo@squebb.ca>
Tested-by: default avatarMatthew Schwartz <matthew.schwartz@linux.dev>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Reviewed-by: default avatarMark Pearson <mpearson-lenovo@squebb.ca>
Reviewed-by: default avatarMaximilian Luz <luzmaximilian@gmail.com>
Reviewed-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: default avatarArmin Wolf <W_Armin@gmx.de>
Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20241206031918.1537-2-mario.limonciello@amd.com


Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
parent 40384c84
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -211,6 +211,7 @@ static int surface_platform_profile_probe(struct ssam_device *sdev)

	tpd->sdev = sdev;

	tpd->handler.name = "Surface Platform Profile";
	tpd->handler.profile_get = ssam_platform_profile_get;
	tpd->handler.profile_set = ssam_platform_profile_set;

+1 −0
Original line number Diff line number Diff line
@@ -1878,6 +1878,7 @@ static int acer_platform_profile_setup(void)
	if (quirks->predator_v4) {
		int err;

		platform_profile_handler.name = "acer-wmi";
		platform_profile_handler.profile_get =
			acer_predator_v4_platform_profile_get;
		platform_profile_handler.profile_set =
+1 −0
Original line number Diff line number Diff line
@@ -405,6 +405,7 @@ int amd_pmf_init_sps(struct amd_pmf_dev *dev)
		amd_pmf_set_sps_power_limits(dev);
	}

	dev->pprof.name = "amd-pmf";
	dev->pprof.profile_get = amd_pmf_profile_get;
	dev->pprof.profile_set = amd_pmf_profile_set;

+1 −0
Original line number Diff line number Diff line
@@ -3876,6 +3876,7 @@ static int platform_profile_setup(struct asus_wmi *asus)

	dev_info(dev, "Using throttle_thermal_policy for platform_profile support\n");

	asus->platform_profile_handler.name = "asus-wmi";
	asus->platform_profile_handler.profile_get = asus_wmi_platform_profile_get;
	asus->platform_profile_handler.profile_set = asus_wmi_platform_profile_set;

+1 −0
Original line number Diff line number Diff line
@@ -1156,6 +1156,7 @@ static int create_thermal_profile(void)

	pp_handler.profile_get = thermal_profile_get;
	pp_handler.profile_set = thermal_profile_set;
	pp_handler.name = "alienware-wmi";

	return platform_profile_register(&pp_handler);
}
Loading