power: supply: sbs-battery: add support for time_to_empty_now attribute
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Mon, 19 Jul 2021 07:20:19 +0000 (09:20 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 6 Aug 2021 21:48:51 +0000 (23:48 +0200)
commit6ea0126631b0c3fb03ad69832c409b00a250d8dd
tree3d33b9355da3d685f0358112b8015fa756326e54
parente11544d0cdc16d59a4685872db5d81cd521819d3
power: supply: sbs-battery: add support for time_to_empty_now attribute

As defined by the Smart Battery Data Specification.

An _AVG suffix is added to the enum values REG_TIME_TO_EMPTY and
REG_TIME_TO_FULL to make the distinction clear.

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/sbs-battery.c