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

Input: 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>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Geert Uytterhoeven and committed by
Dmitry Torokhov
7d6548ab 62f46669

+13 -12
+2 -2
drivers/input/keyboard/Kconfig
··· 187 187 188 188 config KEYBOARD_GPIO 189 189 tristate "GPIO Buttons" 190 - depends on GPIOLIB 190 + depends on GPIOLIB || COMPILE_TEST 191 191 help 192 192 This driver implements support for buttons connected 193 193 to GPIO pins of various CPUs (and some other chips). ··· 253 253 254 254 config KEYBOARD_MATRIX 255 255 tristate "GPIO driven matrix keypad support" 256 - depends on GPIOLIB 256 + depends on GPIOLIB || COMPILE_TEST 257 257 select INPUT_MATRIXKMAP 258 258 help 259 259 Enable support for GPIO driven matrix keypad.
+6 -5
drivers/input/misc/Kconfig
··· 259 259 config INPUT_GP2A 260 260 tristate "Sharp GP2AP002A00F I2C Proximity/Opto sensor driver" 261 261 depends on I2C 262 - depends on GPIOLIB 262 + depends on GPIOLIB || COMPILE_TEST 263 263 help 264 264 Say Y here if you have a Sharp GP2AP002A00F proximity/als combo-chip 265 265 hooked to an I2C bus. ··· 269 269 270 270 config INPUT_GPIO_BEEPER 271 271 tristate "Generic GPIO Beeper support" 272 - depends on GPIOLIB 272 + depends on GPIOLIB || COMPILE_TEST 273 273 help 274 274 Say Y here if you have a beeper connected to a GPIO pin. 275 275 ··· 278 278 279 279 config INPUT_GPIO_TILT_POLLED 280 280 tristate "Polled GPIO tilt switch" 281 - depends on GPIOLIB 281 + depends on GPIOLIB || COMPILE_TEST 282 282 select INPUT_POLLDEV 283 283 help 284 284 This driver implements support for tilt switches connected ··· 569 569 570 570 config INPUT_GPIO_ROTARY_ENCODER 571 571 tristate "Rotary encoders connected to GPIO pins" 572 - depends on GPIOLIB 572 + depends on GPIOLIB || COMPILE_TEST 573 573 help 574 574 Say Y here to add support for rotary encoders connected to GPIO lines. 575 575 Check file:Documentation/input/rotary-encoder.txt for more ··· 776 776 777 777 config INPUT_DRV260X_HAPTICS 778 778 tristate "TI DRV260X haptics support" 779 - depends on INPUT && I2C && GPIOLIB 779 + depends on INPUT && I2C 780 + depends on GPIOLIB || COMPILE_TEST 780 781 select INPUT_FF_MEMLESS 781 782 select REGMAP_I2C 782 783 help
+1 -1
drivers/input/mouse/Kconfig
··· 341 341 342 342 config MOUSE_GPIO 343 343 tristate "GPIO mouse" 344 - depends on GPIOLIB 344 + depends on GPIOLIB || COMPILE_TEST 345 345 select INPUT_POLLDEV 346 346 help 347 347 This driver simulates a mouse on GPIO lines of various CPUs (and some
+4 -4
drivers/input/touchscreen/Kconfig
··· 118 118 config TOUCHSCREEN_AUO_PIXCIR 119 119 tristate "AUO in-cell touchscreen using Pixcir ICs" 120 120 depends on I2C 121 - depends on GPIOLIB 121 + depends on GPIOLIB || COMPILE_TEST 122 122 help 123 123 Say Y here if you have a AUO display with in-cell touchscreen 124 124 using Pixcir ICs. ··· 142 142 143 143 config TOUCHSCREEN_CHIPONE_ICN8318 144 144 tristate "chipone icn8318 touchscreen controller" 145 - depends on GPIOLIB 145 + depends on GPIOLIB || COMPILE_TEST 146 146 depends on I2C 147 147 depends on OF 148 148 help ··· 156 156 config TOUCHSCREEN_CY8CTMG110 157 157 tristate "cy8ctmg110 touchscreen" 158 158 depends on I2C 159 - depends on GPIOLIB 159 + depends on GPIOLIB || COMPILE_TEST 160 160 help 161 161 Say Y here if you have a cy8ctmg110 capacitive touchscreen on 162 162 an AAVA device. ··· 1030 1030 config TOUCHSCREEN_ZFORCE 1031 1031 tristate "Neonode zForce infrared touchscreens" 1032 1032 depends on I2C 1033 - depends on GPIOLIB 1033 + depends on GPIOLIB || COMPILE_TEST 1034 1034 help 1035 1035 Say Y here if you have a touchscreen using the zforce 1036 1036 infraread technology from Neonode.