]> git.dujemihanovic.xyz Git - linux.git/commit
power: supply: generic-adc-battery: simplify read_channel logic
authorSebastian Reichel <sre@kernel.org>
Fri, 17 Mar 2023 22:57:02 +0000 (23:57 +0100)
committerSebastian Reichel <sre@kernel.org>
Wed, 29 Mar 2023 20:38:57 +0000 (22:38 +0200)
commit9489d1bdb763a3dd954e61522043190a9fd1cb4c
tree080be1a763d9891f5fd011c2acdfaa874450e94e
parent1b27bf793fd46219c882b8e545ec736cfadc0841
power: supply: generic-adc-battery: simplify read_channel logic

Drop mostly useless gab_prop_to_chan() function by directly
supplying the correct enum value to read_channel().

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/generic-adc-battery.c