power: supply: ab8500: Use local helper
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 12 Dec 2020 10:57:08 +0000 (11:57 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 12 Dec 2020 20:30:08 +0000 (21:30 +0100)
commitad89cb5f0a1ffad6ae9ba277f99fea830d135e7c
treefc8af59e407794fc66c78959f5fe4ac988bd77db
parentfaa2cec66798b17aea9c53756a1354e8a7ea54ef
power: supply: ab8500: Use local helper

Use a local "dev" helper variable to make the probe()
code easier to read in the ab8500 subdrivers.

Drop out-of-memory messages as these should come from the
slab core.

Cc: Marcus Cooper <codekipper@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ab8500_btemp.c
drivers/power/supply/ab8500_charger.c
drivers/power/supply/ab8500_fg.c