History

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.

Geert Uytterhoeven committed 11 years ago

Commit 7d6548a1 parent 62f46664 files · +13 −12Browse files

Unified · Split

4 files
  1. drivers/input/keyboard/Kconfig +2 −2
  2. drivers/input/misc/Kconfig +6 −5
  3. drivers/input/mouse/Kconfig +1 −1
  4. drivers/input/touchscreen/Kconfig +4 −4
drivers/input/keyboard/Kconfig+2−2
@@ -187,7 +187,7 @@ config KEYBOARD_EP93XX · 186 unmodified lines
187187
188188 config KEYBOARD_GPIO
189189 tristate "GPIO Buttons"
190− depends on GPIOLIB
190+ depends on GPIOLIB || COMPILE_TEST
191191 help
192192 This driver implements support for buttons connected
193193 to GPIO pins of various CPUs (and some other chips).
@@ -253,7 +253,7 @@ config KEYBOARD_TCA8418 · 59 unmodified lines
253253
254254 config KEYBOARD_MATRIX
255255 tristate "GPIO driven matrix keypad support"
256− depends on GPIOLIB
256+ depends on GPIOLIB || COMPILE_TEST
257257 select INPUT_MATRIXKMAP
258258 help
259259 Enable support for GPIO driven matrix keypad.
drivers/input/misc/Kconfig+6−5
@@ -259,7 +259,7 @@ config INPUT_APANEL · 258 unmodified lines
259259 config INPUT_GP2A
260260 tristate "Sharp GP2AP002A00F I2C Proximity/Opto sensor driver"
261261 depends on I2C
262− depends on GPIOLIB
262+ depends on GPIOLIB || COMPILE_TEST
263263 help
264264 Say Y here if you have a Sharp GP2AP002A00F proximity/als combo-chip
265265 hooked to an I2C bus.
@@ -269,7 +269,7 @@ config INPUT_GP2A · 3 unmodified lines
269269
270270 config INPUT_GPIO_BEEPER
271271 tristate "Generic GPIO Beeper support"
272− depends on GPIOLIB
272+ depends on GPIOLIB || COMPILE_TEST
273273 help
274274 Say Y here if you have a beeper connected to a GPIO pin.
275275
@@ -278,7 +278,7 @@ config INPUT_GPIO_BEEPER · 2 unmodified lines
278278
279279 config INPUT_GPIO_TILT_POLLED
280280 tristate "Polled GPIO tilt switch"
281− depends on GPIOLIB
281+ depends on GPIOLIB || COMPILE_TEST
282282 select INPUT_POLLDEV
283283 help
284284 This driver implements support for tilt switches connected
@@ -569,7 +569,7 @@ config INPUT_PWM_BEEPER · 284 unmodified lines
569569
570570 config INPUT_GPIO_ROTARY_ENCODER
571571 tristate "Rotary encoders connected to GPIO pins"
572− depends on GPIOLIB
572+ depends on GPIOLIB || COMPILE_TEST
573573 help
574574 Say Y here to add support for rotary encoders connected to GPIO lines.
575575 Check file:Documentation/input/rotary-encoder.txt for more
@@ -776,7 +776,8 @@ config INPUT_SOC_BUTTON_ARRAY · 200 unmodified lines
776776
777777 config INPUT_DRV260X_HAPTICS
778778 tristate "TI DRV260X haptics support"
779− depends on INPUT && I2C && GPIOLIB
779+ depends on INPUT && I2C
780+ depends on GPIOLIB || COMPILE_TEST
780781 select INPUT_FF_MEMLESS
781782 select REGMAP_I2C
782783 help
drivers/input/mouse/Kconfig+1−1
@@ -341,7 +341,7 @@ config MOUSE_VSXXXAA · 340 unmodified lines
341341
342342 config MOUSE_GPIO
343343 tristate "GPIO mouse"
344− depends on GPIOLIB
344+ depends on GPIOLIB || COMPILE_TEST
345345 select INPUT_POLLDEV
346346 help
347347 This driver simulates a mouse on GPIO lines of various CPUs (and some
drivers/input/touchscreen/Kconfig+4−4
@@ -118,7 +118,7 @@ config TOUCHSCREEN_ATMEL_MXT · 117 unmodified lines
118118 config TOUCHSCREEN_AUO_PIXCIR
119119 tristate "AUO in-cell touchscreen using Pixcir ICs"
120120 depends on I2C
121− depends on GPIOLIB
121+ depends on GPIOLIB || COMPILE_TEST
122122 help
123123 Say Y here if you have a AUO display with in-cell touchscreen
124124 using Pixcir ICs.
@@ -142,7 +142,7 @@ config TOUCHSCREEN_BU21013 · 17 unmodified lines
142142
143143 config TOUCHSCREEN_CHIPONE_ICN8318
144144 tristate "chipone icn8318 touchscreen controller"
145− depends on GPIOLIB
145+ depends on GPIOLIB || COMPILE_TEST
146146 depends on I2C
147147 depends on OF
148148 help
@@ -156,7 +156,7 @@ config TOUCHSCREEN_CHIPONE_ICN8318 · 7 unmodified lines
156156 config TOUCHSCREEN_CY8CTMG110
157157 tristate "cy8ctmg110 touchscreen"
158158 depends on I2C
159− depends on GPIOLIB
159+ depends on GPIOLIB || COMPILE_TEST
160160 help
161161 Say Y here if you have a cy8ctmg110 capacitive touchscreen on
162162 an AAVA device.
@@ -1030,7 +1030,7 @@ config TOUCHSCREEN_TPS6507X · 867 unmodified lines
10301030 config TOUCHSCREEN_ZFORCE
10311031 tristate "Neonode zForce infrared touchscreens"
10321032 depends on I2C
1033− depends on GPIOLIB
1033+ depends on GPIOLIB || COMPILE_TEST
10341034 help
10351035 Say Y here if you have a touchscreen using the zforce
10361036 infraread technology from Neonode.