power: supply: core: Add some helpers to use the battery OCV capacity table
authorBaolin Wang <baolin.wang@linaro.org>
Mon, 5 Nov 2018 07:39:09 +0000 (15:39 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 9 Nov 2018 21:55:46 +0000 (22:55 +0100)
commit3afb50d7125bcdbf71df843134e96ceffc78c8b8
tree9e5c23b56b109eb8361d83e47a44b80511de95d8
parent428527b3e6e1531dcde5c47f0553a9833e1054c8
power: supply: core: Add some helpers to use the battery OCV capacity table

We have introduced some battery properties to present the OCV table
temperatures and OCV capacity table values. Thus this patch add OCV
temperature and OCV table for battery information, as well as providing
some helper functions to use the OCV capacity table for users.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/power_supply_core.c
include/linux/power_supply.h