summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSicelo A. Mhlongo <absicsz@gmail.com>2024-11-25 18:12:58 +0300
committerSebastian Reichel <sebastian.reichel@collabora.com>2024-12-19 02:42:21 +0300
commit525f6a2c63e0958c25080e108a0cb7f8a3a23719 (patch)
tree7f300d238369a46237e52a68c651b2e69887d8e4 /include
parent156fb706f915ceb436200030e3730305bbf12f6c (diff)
downloadlinux-525f6a2c63e0958c25080e108a0cb7f8a3a23719.tar.xz
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/power/bq27xxx_battery.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/power/bq27xxx_battery.h b/include/linux/power/bq27xxx_battery.h
index 5180dc9f1706..6b190639b08e 100644
--- a/include/linux/power/bq27xxx_battery.h
+++ b/include/linux/power/bq27xxx_battery.h
@@ -61,6 +61,7 @@ struct bq27xxx_device_info {
struct bq27xxx_access_methods bus;
struct bq27xxx_reg_cache cache;
int charge_design_full;
+ int voltage_min_design;
bool removed;
unsigned long last_update;
union power_supply_propval last_status;