]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
power: supply: qcom_battmgr: Recognize "LiP" as lithium-polymer
authorVal Packett <val@packett.cool>
Tue, 20 Jan 2026 23:57:58 +0000 (20:57 -0300)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 30 Jan 2026 19:58:57 +0000 (20:58 +0100)
commitc655f45480637aee326b5bd96488d35ab90db2b0
treeb3c6d36bdfe2dfac2ab82e0a04c2f0e1484ee138
parent3db37475d78ed0c2857f289a535dd44b045a904a
power: supply: qcom_battmgr: Recognize "LiP" as lithium-polymer

On the Dell Latitude 7455, the firmware uses "LiP" with a lowercase 'i'
for the battery chemistry type, but only all-uppercase "LIP" was being
recognized. Add the CamelCase variant to the check to fix the "Unknown
battery technology" warning.

Fixes: 202ac22b8e2e ("power: supply: qcom_battmgr: Add lithium-polymer entry")
Signed-off-by: Val Packett <val@packett.cool>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://patch.msgid.link/20260120235831.479038-1-val@packett.cool
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/qcom_battmgr.c