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

mfd: Allow compile test of GPIO consumers if !GPIOLIB

The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is
not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer
functionality only, can still be compiled if GPIOLIB is not enabled.

Relax the dependency on GPIOLIB if COMPILE_TEST is enabled, where
appropriate.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Geert Uytterhoeven and committed by
Lee Jones
6fafecc1 8be4efad

+4 -2
+4 -2
drivers/mfd/Kconfig
··· 52 52 config MFD_AAT2870_CORE 53 53 bool "AnalogicTech AAT2870" 54 54 select MFD_CORE 55 - depends on I2C=y && GPIOLIB 55 + depends on I2C=y 56 + depends on GPIOLIB || COMPILE_TEST 56 57 help 57 58 If you say yes here you get support for the AAT2870. 58 59 This driver provides common support for accessing the device, ··· 1118 1117 1119 1118 config MFD_TPS65910 1120 1119 bool "TI TPS65910 Power Management chip" 1121 - depends on I2C=y && GPIOLIB 1120 + depends on I2C=y 1121 + depends on GPIOLIB || COMPILE_TEST 1122 1122 select MFD_CORE 1123 1123 select REGMAP_I2C 1124 1124 select REGMAP_IRQ