power: supply: ab8500: Drop unused battery types
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 20 Nov 2021 15:53:14 +0000 (16:53 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 22 Nov 2021 16:16:25 +0000 (17:16 +0100)
commitd8d26ac12e182f2e7f2697b09fabe817b4238c2c
tree62cfafcfe629319bf47a2faffce3269e26dd2cfc
parent6252c706cdb003da0046ced1a088b9f31af1fd9b
power: supply: ab8500: Drop unused battery types

The code tries to detect a lot of battery variants on the reference
designs, but we are not using the reference designs in practice, we
are using real products such as Samsung Phones.

The reference design with no battery plugged in will be detected as
a LIPO battery with a thermistor on the batctrl pin so we will
assume this and later on we can support other types through the
device tree if we want, just like the products do.

Drop the tables for external thermistor, only keep the internal
thermistor tables that we will use as default.

We can delete the assignment of the temperature to resistance table
since the default will be the only and correct option.

Also get rid of some unused variables and unused exports.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ab8500_bmdata.c