]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bq27xxx: add voltage min design for bq27000 and bq27200
authorSicelo A. Mhlongo <absicsz@gmail.com>
Mon, 25 Nov 2024 15:12:58 +0000 (17:12 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 18 Dec 2024 23:42:21 +0000 (00:42 +0100)
commit525f6a2c63e0958c25080e108a0cb7f8a3a23719
tree7f300d238369a46237e52a68c651b2e69887d8e4
parent156fb706f915ceb436200030e3730305bbf12f6c
bq27xxx: add voltage min design for bq27000 and bq27200

The bq27x00 gauges have an EEPROM register which contains the value of
the voltage that should be considered to be zero battery capacity. Expose
this to userspace using the VOLTAGE_MIN_DESIGN property.

Tested on Nokia N900 with bq27200.

Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com>
Acked-by: Pali Rohár <pali@kernel.org>
Link: https://lore.kernel.org/r/20241125151321.45440-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