]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit589244ff410f574d0f45f538fa3d0a6bbc6ae9c3
tree42690ade131f67d6178310b1140817cbbd845f18
parentef83395ac9c0dfdd6e84f5c79610e2bd937f7c2c
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