* [PATCH] ACPI: FAN: Update fps count debug print
@ 2025-06-21 5:17 Sumeet Pawnikar
2025-07-02 17:54 ` Rafael J. Wysocki
0 siblings, 1 reply; 3+ messages in thread
From: Sumeet Pawnikar @ 2025-06-21 5:17 UTC (permalink / raw)
To: rafael, linux-acpi; +Cc: lenb, linux-kernel, linux-pm, sumeet4linux
Update invalid value returned debug print with fps_count
instead of control value for checking fan fps count condition.
Signed-off-by: Sumeet Pawnikar <sumeet4linux@gmail.com>
---
drivers/acpi/fan_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/acpi/fan_core.c b/drivers/acpi/fan_core.c
index 8ad12ad3aaaf..9f2696a1928c 100644
--- a/drivers/acpi/fan_core.c
+++ b/drivers/acpi/fan_core.c
@@ -102,7 +102,7 @@ static int fan_get_state_acpi4(struct acpi_device *device, unsigned long *state)
break;
}
if (i == fan->fps_count) {
- dev_dbg(&device->dev, "Invalid control value returned\n");
+ dev_dbg(&device->dev, "Invalid fps_count value returned\n");
return -EINVAL;
}
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] ACPI: FAN: Update fps count debug print
2025-06-21 5:17 [PATCH] ACPI: FAN: Update fps count debug print Sumeet Pawnikar
@ 2025-07-02 17:54 ` Rafael J. Wysocki
[not found] ` <CAJ9orWQAPun6Oy3wMOBK+OYcvUTHDEZ7GUgsuxU2pctNY7O3Mw@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Rafael J. Wysocki @ 2025-07-02 17:54 UTC (permalink / raw)
To: Sumeet Pawnikar; +Cc: rafael, linux-acpi, lenb, linux-kernel, linux-pm
On Sat, Jun 21, 2025 at 7:17 AM Sumeet Pawnikar <sumeet4linux@gmail.com> wrote:
>
> Update invalid value returned debug print with fps_count
> instead of control value for checking fan fps count condition.
>
> Signed-off-by: Sumeet Pawnikar <sumeet4linux@gmail.com>
> ---
> drivers/acpi/fan_core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/acpi/fan_core.c b/drivers/acpi/fan_core.c
> index 8ad12ad3aaaf..9f2696a1928c 100644
> --- a/drivers/acpi/fan_core.c
> +++ b/drivers/acpi/fan_core.c
> @@ -102,7 +102,7 @@ static int fan_get_state_acpi4(struct acpi_device *device, unsigned long *state)
> break;
> }
> if (i == fan->fps_count) {
> - dev_dbg(&device->dev, "Invalid control value returned\n");
> + dev_dbg(&device->dev, "Invalid fps_count value returned\n");
I guess this should be "fps" instead of "fps_count" because the latter
is just the array size, isn't it?
But I don't see why it should not be "control" either.
> return -EINVAL;
> }
>
> --
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-07-03 12:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-21 5:17 [PATCH] ACPI: FAN: Update fps count debug print Sumeet Pawnikar
2025-07-02 17:54 ` Rafael J. Wysocki
[not found] ` <CAJ9orWQAPun6Oy3wMOBK+OYcvUTHDEZ7GUgsuxU2pctNY7O3Mw@mail.gmail.com>
2025-07-03 12:11 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox