power: max17040: get thermal data from adc if available
authorSvyatoslav Ryhel <clamor95@gmail.com>
Mon, 31 Jul 2023 07:36:12 +0000 (10:36 +0300)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 14 Sep 2023 14:54:46 +0000 (16:54 +0200)
commit814755c48f8b2c3e83b3c11535c48ab416128978
treec358e39ac2a4077e2156de70912b470890fe33a4
parentf4b782af61ae7bbf93008d5809b0e3a8ac2bb88e
power: max17040: get thermal data from adc if available

Since fuel gauge does not support thermal monitoring,
some vendors may couple this fuel gauge with thermal/adc
sensor to monitor battery cell exact temperature.

Add this feature by adding optional iio thermal channel.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Reviewed-by: Iskren Chernev <me@iskren.info>
Link: https://lore.kernel.org/r/20230731073613.10394-4-clamor95@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/Kconfig
drivers/power/supply/max17040_battery.c