[PATCH] ACPI: thermal: Fix incorrect comment about trip points

xueqin Luo posted 1 patch 1 year ago
drivers/acpi/thermal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] ACPI: thermal: Fix incorrect comment about trip points
Posted by xueqin Luo 1 year ago
The function `acpi_thermal_get_trip_points()` no longer retrieves
the "_CRT" resource.  Instead, it obtains "_ACi" trip points. Update
the comment accordingly to reflect the correct behavior.

Signed-off-by: xueqin Luo <luoxueqin@kylinos.cn>
---
 drivers/acpi/thermal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
index 95982c098d5b..0c874186f8ae 100644
--- a/drivers/acpi/thermal.c
+++ b/drivers/acpi/thermal.c
@@ -803,7 +803,7 @@ static int acpi_thermal_add(struct acpi_device *device)
 
 	acpi_thermal_aml_dependency_fix(tz);
 
-	/* Get trip points [_CRT, _PSV, etc.] (required). */
+	/* Get trip points [_ACi, _PSV, etc.] (required). */
 	acpi_thermal_get_trip_points(tz);
 
 	crit_temp = acpi_thermal_get_critical_trip(tz);
-- 
2.34.1
Re: [PATCH] ACPI: thermal: Fix incorrect comment about trip points
Posted by Rafael J. Wysocki 11 months, 3 weeks ago
On Sat, Feb 8, 2025 at 2:33 AM xueqin Luo <luoxueqin@kylinos.cn> wrote:
>
> The function `acpi_thermal_get_trip_points()` no longer retrieves
> the "_CRT" resource.  Instead, it obtains "_ACi" trip points. Update
> the comment accordingly to reflect the correct behavior.
>
> Signed-off-by: xueqin Luo <luoxueqin@kylinos.cn>
> ---
>  drivers/acpi/thermal.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c
> index 95982c098d5b..0c874186f8ae 100644
> --- a/drivers/acpi/thermal.c
> +++ b/drivers/acpi/thermal.c
> @@ -803,7 +803,7 @@ static int acpi_thermal_add(struct acpi_device *device)
>
>         acpi_thermal_aml_dependency_fix(tz);
>
> -       /* Get trip points [_CRT, _PSV, etc.] (required). */
> +       /* Get trip points [_ACi, _PSV, etc.] (required). */
>         acpi_thermal_get_trip_points(tz);
>
>         crit_temp = acpi_thermal_get_critical_trip(tz);
> --

Applied as 6.15 material with edits in the subject and changelog, thanks!