]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: Allow compile test of GPIO consumers if !GPIOLIB
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 5 May 2015 16:32:22 +0000 (18:32 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 12 May 2015 13:22:52 +0000 (15:22 +0200)
commita65938aefedb31d884a3ef45e805d54f4975ebc7
tree86cc44cd3009d2b5746be13db6e77e36443a4646
parentefce7ccae9c73575683d5c738484be11e67c4c20
i2c: 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: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/Kconfig
drivers/i2c/muxes/Kconfig