diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2018-11-12 09:06:32 -0800 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2018-11-13 03:03:21 +0100 |
commit | ed60f43d0170e5f589e5285517db2c7b084f7d65 (patch) | |
tree | 67810c8409e4a3c10a2675754d40aafbed9787b1 /drivers/power/supply | |
parent | 195ca1703784d1fbc34b38019aedcb74f08154f1 (diff) | |
download | linux-ed60f43d0170e5f589e5285517db2c7b084f7d65.tar.bz2 |
power/supply: fix sc27xx_fuel_gauge build errors
Fix build errors when FUEL_GUAGE_SC27XX is enabled but IIO is either
not enabled or IIO=m and FUEL_GUAGE_SC27XX=y.
ld: drivers/power/supply/sc27xx_fuel_gauge.o: in function `sc27xx_fgu_get_temp':
sc27xx_fuel_gauge.c:(.text+0x1d2): undefined reference to `iio_read_channel_processed'
ld: drivers/power/supply/sc27xx_fuel_gauge.o: in function `sc27xx_fgu_probe':
sc27xx_fuel_gauge.c:(.text+0x97f): undefined reference to `devm_iio_channel_get'
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: linux-pm@vger.kernel.org
Acked-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply')
-rw-r--r-- | drivers/power/supply/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig index 917f4b7f3fd1..e901b9879e7e 100644 --- a/drivers/power/supply/Kconfig +++ b/drivers/power/supply/Kconfig @@ -655,6 +655,7 @@ config CHARGER_SC2731 config FUEL_GAUGE_SC27XX tristate "Spreadtrum SC27XX fuel gauge driver" depends on MFD_SC27XX_PMIC || COMPILE_TEST + depends on IIO help Say Y here to enable support for fuel gauge with SC27XX PMIC chips. |