[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220701023328.2783-9-mario.limonciello@amd.com>
Date: Thu, 30 Jun 2022 21:33:27 -0500
From: Mario Limonciello <mario.limonciello@....com>
To: <mario.limonciello@....com>, <linux-kernel@...r.kernel.org>
CC: <linux-pm@...r.kernel.org>, Jiri Kosina <jikos@...nel.org>,
"Benjamin Tissoires" <benjamin.tissoires@...hat.com>,
<linux-input@...r.kernel.org>
Subject: [PATCH v3 09/10] HID: I2C-HID: Use `pm_suspend_preferred_s2idle`
Drop the direct check from the FADT and use the helper instead.
Signed-off-by: Mario Limonciello <mario.limonciello@....com>
---
drivers/hid/i2c-hid/i2c-hid-acpi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hid/i2c-hid/i2c-hid-acpi.c b/drivers/hid/i2c-hid/i2c-hid-acpi.c
index b96ae15e0ad9..84d51f309c53 100644
--- a/drivers/hid/i2c-hid/i2c-hid-acpi.c
+++ b/drivers/hid/i2c-hid/i2c-hid-acpi.c
@@ -105,7 +105,7 @@ static int i2c_hid_acpi_probe(struct i2c_client *client)
acpi_device_fix_up_power(adev);
- if (acpi_gbl_FADT.flags & ACPI_FADT_LOW_POWER_S0) {
+ if (pm_suspend_preferred_s2idle()) {
device_set_wakeup_capable(dev, true);
device_set_wakeup_enable(dev, false);
}
--
2.34.1
Powered by blists - more mailing lists