Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

power: supply: mt6370: uses IIO interfaces, depends on IIO

The mt6370-charger driver uses IIO interfaces and produces build
errors when CONFIG_IIO is not set, so it should depend on IIO.

ERROR: modpost: "iio_read_channel_processed" [drivers/power/supply/mt6370-charger.ko] undefined!
ERROR: modpost: "devm_iio_channel_get_all" [drivers/power/supply/mt6370-charger.ko] undefined!

Fixes: 233cb8a47d65 ("power: supply: mt6370: Add MediaTek MT6370 charger driver")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: ChiaEn Wu <chiaen_wu@richtek.com>
Cc: Sebastian Reichel <sebastian.reichel@collabora.com>
Cc: linux-pm@vger.kernel.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Randy Dunlap and committed by
Sebastian Reichel
d8be4fe9 8bc80006

+1
+1
drivers/power/supply/Kconfig
··· 623 623 tristate "MediaTek MT6370 Charger Driver" 624 624 depends on MFD_MT6370 625 625 depends on REGULATOR 626 + depends on IIO 626 627 select LINEAR_RANGES 627 628 help 628 629 Say Y here to enable MT6370 Charger Part.