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.
Unified · Split
| @@ -187,7 +187,7 @@ config KEYBOARD_EP93XX · 186 unmodified lines | ||
| 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,7 +253,7 @@ config KEYBOARD_TCA8418 · 59 unmodified lines | ||
| 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. |
| @@ -259,7 +259,7 @@ config INPUT_APANEL · 258 unmodified lines | ||
| 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,7 +269,7 @@ config INPUT_GP2A · 3 unmodified lines | ||
| 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,7 +278,7 @@ config INPUT_GPIO_BEEPER · 2 unmodified lines | ||
| 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,7 +569,7 @@ config INPUT_PWM_BEEPER · 284 unmodified lines | ||
| 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,7 +776,8 @@ config INPUT_SOC_BUTTON_ARRAY · 200 unmodified lines | ||
| 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 |
| @@ -341,7 +341,7 @@ config MOUSE_VSXXXAA · 340 unmodified lines | ||
| 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 |
| @@ -118,7 +118,7 @@ config TOUCHSCREEN_ATMEL_MXT · 117 unmodified lines | ||
| 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,7 +142,7 @@ config TOUCHSCREEN_BU21013 · 17 unmodified lines | ||
| 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,7 +156,7 @@ config TOUCHSCREEN_CHIPONE_ICN8318 · 7 unmodified lines | ||
| 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,7 +1030,7 @@ config TOUCHSCREEN_TPS6507X · 867 unmodified lines | ||
| 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. |