[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200630175559.23966-1-rublag-ns@yandex.ru>
Date: Tue, 30 Jun 2020 20:56:01 +0300
From: Vasiliy Kupriakov <rublag-ns@...dex.ru>
To: Corentin Chary <corentin.chary@...il.com>,
Darren Hart <dvhart@...radead.org>,
Andy Shevchenko <andy@...radead.org>
Cc: Vasiliy Kupriakov <rublag-ns@...dex.ru>,
acpi4asus-user@...ts.sourceforge.net (open list:ASUS NOTEBOOKS AND
EEEPC ACPI/WMI EXTRAS DRIVERS),
platform-driver-x86@...r.kernel.org (open list:ASUS NOTEBOOKS AND EEEPC
ACPI/WMI EXTRAS DRIVERS), linux-kernel@...r.kernel.org (open list)
Subject:
Subject: [PATCH] platform/x86: asus-wmi: allow BAT1 battery name
The battery on my laptop ASUS TUF Gaming FX706II is named BAT1.
This patch allows battery extension to load.
Signed-off-by: Vasiliy Kupriakov <rublag-ns@...dex.ru>
---
drivers/platform/x86/asus-wmi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c
index 877aade19497..8f4acdc06b13 100644
--- a/drivers/platform/x86/asus-wmi.c
+++ b/drivers/platform/x86/asus-wmi.c
@@ -441,6 +441,7 @@ static int asus_wmi_battery_add(struct power_supply *battery)
* battery is named BATT.
*/
if (strcmp(battery->desc->name, "BAT0") != 0 &&
+ strcmp(battery->desc->name, "BAT1") != 0 &&
strcmp(battery->desc->name, "BATT") != 0)
return -ENODEV;
--
2.27.0
Powered by blists - more mailing lists