[PATCH 1/2] ACPI: AC: Rename thinkpad_e530_quirk() to ac_sleep_quirk()

From: Hugo Sales

Date: Sat Oct 31 2026 - 17:20:15 EST


The callback sets the delay before reading _PSR and has nothing
ThinkPad-specific in it. Name it after what it does, like
ac_only_quirk(), so other machines with the same firmware pattern can
use it

No functional change

Signed-off-by: Hugo Sales <hugo@xxxxxxx>
---
drivers/acpi/ac.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c
index f19d6dd43473a..1cd7482bc0246 100644
--- a/drivers/acpi/ac.c
+++ b/drivers/acpi/ac.c
@@ -158,7 +158,7 @@ static int acpi_ac_battery_notify(struct notifier_block *nb,
return NOTIFY_OK;
}

-static int __init thinkpad_e530_quirk(const struct dmi_system_id *d)
+static int __init ac_sleep_quirk(const struct dmi_system_id *d)
{
ac_sleep_before_get_state_ms = 1000;
return 0;
@@ -181,7 +181,7 @@ static const struct dmi_system_id ac_dmi_table[] __initconst = {
},
{
/* Lenovo Thinkpad e530, see comment in acpi_ac_notify() */
- .callback = thinkpad_e530_quirk,
+ .callback = ac_sleep_quirk,
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
DMI_MATCH(DMI_PRODUCT_NAME, "32597CG"),
--
2.56.0