summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorChristopher Ruehl <chris.ruehl@gtsys.com.hk>2025-08-11 17:22:09 +0200
committerSebastian Reichel <sebastian.reichel@collabora.com>2025-09-06 23:25:31 +0200
commitfee0904441325d83e7578ca457ec65a9d3f21264 (patch)
treed29d2b1eb26b0336ab1bd23b20b88a343579a27a /drivers/power
parentcb03556acf83b235dfb2e9f86e14f5e5b8a5f1e7 (diff)
power: supply: qcom_battmgr: add OOI chemistry
The ASUS S15 xElite model report the Li-ion battery with an OOI, hence this update the detection and return the appropriate type. Signed-off-by: Christopher Ruehl <chris.ruehl@gtsys.com.hk> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/qcom_battmgr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/power/supply/qcom_battmgr.c b/drivers/power/supply/qcom_battmgr.c
index 99808ea9851f..fdb2d1b883fc 100644
--- a/drivers/power/supply/qcom_battmgr.c
+++ b/drivers/power/supply/qcom_battmgr.c
@@ -982,7 +982,8 @@ static void qcom_battmgr_sc8280xp_strcpy(char *dest, const char *src)
static unsigned int qcom_battmgr_sc8280xp_parse_technology(const char *chemistry)
{
- if (!strncmp(chemistry, "LIO", BATTMGR_CHEMISTRY_LEN))
+ if ((!strncmp(chemistry, "LIO", BATTMGR_CHEMISTRY_LEN)) ||
+ (!strncmp(chemistry, "OOI", BATTMGR_CHEMISTRY_LEN)))
return POWER_SUPPLY_TECHNOLOGY_LION;
if (!strncmp(chemistry, "LIP", BATTMGR_CHEMISTRY_LEN))
return POWER_SUPPLY_TECHNOLOGY_LIPO;