aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandy Dunlap <[email protected]>2022-09-28 23:29:40 -0700
committerSebastian Reichel <[email protected]>2022-10-01 22:14:06 +0200
commitd8be4fe92433ad905eedc7d877099685eb2eaaa1 (patch)
tree20d19baf834bdfdf5b659b9e324c6294f4173a57
parent8bc800062221adb40eb24c4b4fd5c572a637114c (diff)
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 <[email protected]> Cc: ChiaEn Wu <[email protected]> Cc: Sebastian Reichel <[email protected]> Cc: [email protected] Signed-off-by: Sebastian Reichel <[email protected]>
-rw-r--r--drivers/power/supply/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig
index 591deb82e2c6..62111f4bb093 100644
--- a/drivers/power/supply/Kconfig
+++ b/drivers/power/supply/Kconfig
@@ -623,6 +623,7 @@ config CHARGER_MT6370
tristate "MediaTek MT6370 Charger Driver"
depends on MFD_MT6370
depends on REGULATOR
+ depends on IIO
select LINEAR_RANGES
help
Say Y here to enable MT6370 Charger Part.