summaryrefslogtreecommitdiff
path: root/include/linux/power_supply.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2021-08-05 11:58:28 +0300
committerSebastian Reichel <sre@kernel.org>2021-08-14 13:48:07 +0300
commit4eef766b7d4d88f0b984781bc1bcb574a6eafdc7 (patch)
tree4dfad7de8464c839bbfe46c365b4afd6be9d471b /include/linux/power_supply.h
parentb171cb623ca253856b7bf7345e8761a7f24b54b9 (diff)
downloadlinux-4eef766b7d4d88f0b984781bc1bcb574a6eafdc7.tar.xz
power: supply: core: Parse battery chemistry/technology
This extends the struct power_supply_battery_info with a "technology" field makes the core DT parser optionally obtain this from the device tree. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'include/linux/power_supply.h')
-rw-r--r--include/linux/power_supply.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h
index be203985ecdd..9ca1f120a211 100644
--- a/include/linux/power_supply.h
+++ b/include/linux/power_supply.h
@@ -352,6 +352,7 @@ struct power_supply_resistance_temp_table {
*/
struct power_supply_battery_info {
+ unsigned int technology; /* from the enum above */
int energy_full_design_uwh; /* microWatt-hours */
int charge_full_design_uah; /* microAmp-hours */
int voltage_min_design_uv; /* microVolts */