iio: Allow compile test of GPIO consumers if !GPIOLIB
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 5 May 2015 16:32:23 +0000 (18:32 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 10 May 2015 19:31:43 +0000 (20:31 +0100)
commit8493585317b1fe1ab7a334faac71fb1e36fde508
tree42690ade131f67d6178310b1140817cbbd845f18
parent3dd477acbdd1f147f432a742afc5521168341461
iio: 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>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: linux-iio@vger.kernel.org
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/humidity/Kconfig
drivers/iio/magnetometer/Kconfig