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
187 187
188config KEYBOARD_GPIO188config KEYBOARD_GPIO
189 tristate "GPIO Buttons"189 tristate "GPIO Buttons"
190 depends on GPIOLIB190 depends on GPIOLIB || COMPILE_TEST
191 help191 help
192 This driver implements support for buttons connected192 This driver implements support for buttons connected
193 to GPIO pins of various CPUs (and some other chips).193 to GPIO pins of various CPUs (and some other chips).
@@ -253,7 +253,7 @@ config KEYBOARD_TCA8418 · 59 unmodified lines
253 253
254config KEYBOARD_MATRIX254config KEYBOARD_MATRIX
255 tristate "GPIO driven matrix keypad support"255 tristate "GPIO driven matrix keypad support"
256 depends on GPIOLIB256 depends on GPIOLIB || COMPILE_TEST
257 select INPUT_MATRIXKMAP257 select INPUT_MATRIXKMAP
258 help258 help
259 Enable support for GPIO driven matrix keypad.259 Enable support for GPIO driven matrix keypad.
drivers/input/misc/Kconfig+6−5
@@ -259,7 +259,7 @@ config INPUT_APANEL · 258 unmodified lines
259config INPUT_GP2A259config INPUT_GP2A
260 tristate "Sharp GP2AP002A00F I2C Proximity/Opto sensor driver"260 tristate "Sharp GP2AP002A00F I2C Proximity/Opto sensor driver"
261 depends on I2C261 depends on I2C
262 depends on GPIOLIB262 depends on GPIOLIB || COMPILE_TEST
263 help263 help
264 Say Y here if you have a Sharp GP2AP002A00F proximity/als combo-chip264 Say Y here if you have a Sharp GP2AP002A00F proximity/als combo-chip
265 hooked to an I2C bus.265 hooked to an I2C bus.
@@ -269,7 +269,7 @@ config INPUT_GP2A · 3 unmodified lines
269 269
270config INPUT_GPIO_BEEPER270config INPUT_GPIO_BEEPER
271 tristate "Generic GPIO Beeper support"271 tristate "Generic GPIO Beeper support"
272 depends on GPIOLIB272 depends on GPIOLIB || COMPILE_TEST
273 help273 help
274 Say Y here if you have a beeper connected to a GPIO pin.274 Say Y here if you have a beeper connected to a GPIO pin.
275 275
@@ -278,7 +278,7 @@ config INPUT_GPIO_BEEPER · 2 unmodified lines
278 278
279config INPUT_GPIO_TILT_POLLED279config INPUT_GPIO_TILT_POLLED
280 tristate "Polled GPIO tilt switch"280 tristate "Polled GPIO tilt switch"
281 depends on GPIOLIB281 depends on GPIOLIB || COMPILE_TEST
282 select INPUT_POLLDEV282 select INPUT_POLLDEV
283 help283 help
284 This driver implements support for tilt switches connected284 This driver implements support for tilt switches connected
@@ -569,7 +569,7 @@ config INPUT_PWM_BEEPER · 284 unmodified lines
569 569
570config INPUT_GPIO_ROTARY_ENCODER570config INPUT_GPIO_ROTARY_ENCODER
571 tristate "Rotary encoders connected to GPIO pins"571 tristate "Rotary encoders connected to GPIO pins"
572 depends on GPIOLIB572 depends on GPIOLIB || COMPILE_TEST
573 help573 help
574 Say Y here to add support for rotary encoders connected to GPIO lines.574 Say Y here to add support for rotary encoders connected to GPIO lines.
575 Check file:Documentation/input/rotary-encoder.txt for more575 Check file:Documentation/input/rotary-encoder.txt for more
@@ -776,7 +776,8 @@ config INPUT_SOC_BUTTON_ARRAY · 200 unmodified lines
776 776
777config INPUT_DRV260X_HAPTICS777config INPUT_DRV260X_HAPTICS
778 tristate "TI DRV260X haptics support"778 tristate "TI DRV260X haptics support"
779 depends on INPUT && I2C && GPIOLIB779 depends on INPUT && I2C
780 depends on GPIOLIB || COMPILE_TEST
780 select INPUT_FF_MEMLESS781 select INPUT_FF_MEMLESS
781 select REGMAP_I2C782 select REGMAP_I2C
782 help783 help
drivers/input/mouse/Kconfig+1−1
@@ -341,7 +341,7 @@ config MOUSE_VSXXXAA · 340 unmodified lines
341 341
342config MOUSE_GPIO342config MOUSE_GPIO
343 tristate "GPIO mouse"343 tristate "GPIO mouse"
344 depends on GPIOLIB344 depends on GPIOLIB || COMPILE_TEST
345 select INPUT_POLLDEV345 select INPUT_POLLDEV
346 help346 help
347 This driver simulates a mouse on GPIO lines of various CPUs (and some347 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
118config TOUCHSCREEN_AUO_PIXCIR118config TOUCHSCREEN_AUO_PIXCIR
119 tristate "AUO in-cell touchscreen using Pixcir ICs"119 tristate "AUO in-cell touchscreen using Pixcir ICs"
120 depends on I2C120 depends on I2C
121 depends on GPIOLIB121 depends on GPIOLIB || COMPILE_TEST
122 help122 help
123 Say Y here if you have a AUO display with in-cell touchscreen123 Say Y here if you have a AUO display with in-cell touchscreen
124 using Pixcir ICs.124 using Pixcir ICs.
@@ -142,7 +142,7 @@ config TOUCHSCREEN_BU21013 · 17 unmodified lines
142 142
143config TOUCHSCREEN_CHIPONE_ICN8318143config TOUCHSCREEN_CHIPONE_ICN8318
144 tristate "chipone icn8318 touchscreen controller"144 tristate "chipone icn8318 touchscreen controller"
145 depends on GPIOLIB145 depends on GPIOLIB || COMPILE_TEST
146 depends on I2C146 depends on I2C
147 depends on OF147 depends on OF
148 help148 help
@@ -156,7 +156,7 @@ config TOUCHSCREEN_CHIPONE_ICN8318 · 7 unmodified lines
156config TOUCHSCREEN_CY8CTMG110156config TOUCHSCREEN_CY8CTMG110
157 tristate "cy8ctmg110 touchscreen"157 tristate "cy8ctmg110 touchscreen"
158 depends on I2C158 depends on I2C
159 depends on GPIOLIB159 depends on GPIOLIB || COMPILE_TEST
160 help160 help
161 Say Y here if you have a cy8ctmg110 capacitive touchscreen on161 Say Y here if you have a cy8ctmg110 capacitive touchscreen on
162 an AAVA device.162 an AAVA device.
@@ -1030,7 +1030,7 @@ config TOUCHSCREEN_TPS6507X · 867 unmodified lines
1030config TOUCHSCREEN_ZFORCE1030config TOUCHSCREEN_ZFORCE
1031 tristate "Neonode zForce infrared touchscreens"1031 tristate "Neonode zForce infrared touchscreens"
1032 depends on I2C1032 depends on I2C
1033 depends on GPIOLIB1033 depends on GPIOLIB || COMPILE_TEST
1034 help1034 help
1035 Say Y here if you have a touchscreen using the zforce1035 Say Y here if you have a touchscreen using the zforce
1036 infraread technology from Neonode.1036 infraread technology from Neonode.