diff options
| author | 2026-08-12 01:30:00 +0200 | |
|---|---|---|
| committer | 2026-09-10 00:43:04 +0200 | |
| commit | 2a26d260e72a95e9f13b9e475f63aa404600fcb2 (patch) | |
| tree | 223a20cfdba96b5a112d1b08df60734f3832cd14 /scripts/Makefile.thinlto | |
| parent | power: supply: qcom_smbx: test battery health status bits (diff) | |
power: supply: qcom_smbx: fix float voltage selector
FLOAT_VOLTAGE_CFG encodes 3,487,500 uV as selector zero and advances in
7,500 uV steps. The current calculation adds one to that selector, so it
programs the requested float voltage one step too high.
Remove the extra offset and name the hardware encoding constants.
Fixes: 8648aeb5d7b7 ("power: supply: add Qualcomm PMI8998 SMB2 Charger driver")
Cc: stable@vger.kernel.org
Signed-off-by: Robin Snyders <robin@snyders.xyz>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://patch.msgid.link/20260812-qcom-smbx-fixes-v1-3-eb48246be599@snyders.xyz
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
