aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorGravatar Sebastian Reichel <sre@kernel.org> 2023-03-17 23:57:01 +0100
committerGravatar Sebastian Reichel <sre@kernel.org> 2023-03-29 22:38:57 +0200
commit1b27bf793fd46219c882b8e545ec736cfadc0841 (patch)
tree3282e1fe0034354d6d6711fd8a97f52c447d4801 /drivers/mtd
parentpower: supply: generic-adc-battery: drop memory alloc error message (diff)
downloadlinux-1b27bf793fd46219c882b8e545ec736cfadc0841.tar.gz
linux-1b27bf793fd46219c882b8e545ec736cfadc0841.tar.bz2
linux-1b27bf793fd46219c882b8e545ec736cfadc0841.zip
power: supply: generic-adc-battery: use simple-battery API
Constant battery data is available through power-supply's simple-battery API. This works automatically, so the manual handling can be removed without loosing any feature :) Note, that the POWER_SUPPLY_STATUS_FULL check for the level variable can be dropped, since the variable is never written. It can be re-introduced properly once the driver gets functionality to calculate the current charge level. Apart from that the check must be done fuzzy anyways, since charge estimation usually is not precise enough to always return exactly the full charge capacity for a full battery. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/mtd')
0 files changed, 0 insertions, 0 deletions