]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
power: supply: bq27xxx: Add voltage_max_design property for bq270x0 and bq27x10
authorSicelo A. Mhlongo <absicsz@gmail.com>
Fri, 7 Feb 2025 21:15:13 +0000 (23:15 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 19 Feb 2025 23:29:55 +0000 (00:29 +0100)
commit903599768a2c39bdd9976d41b4cbc89fbfc55e38
tree4f7e91f2ffd333968e416ef786dfa2778ec592a8
parent4ad5c726706f056347ccce334874cc3ae1075e63
power: supply: bq27xxx: Add voltage_max_design property for bq270x0 and bq27x10

Report VOLTAGE_MAX_DESIGN for the bq27x00 and bq27x10 fuel gauges. Per the
datasheet, this value is stored in the Charge Termination Voltage Settings
(QV0 and QV1) of the Pack Configuration register.

Tested on the Nokia N900 with bq27200.

Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com>
Link: https://lore.kernel.org/r/20250207211521.103357-1-absicsz@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq27xxx_battery.c
include/linux/power/bq27xxx_battery.h