linux-stable/drivers/extcon
Geert Uytterhoeven 638f958bae extcon: 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.

If GPIOLIB=n and asm-generic/gpio.h is not used:

    drivers/extcon/extcon-usb-gpio.c: In function ‘usb_extcon_detect_cable’:
    drivers/extcon/extcon-usb-gpio.c:63: error: implicit declaration of function ‘gpiod_get_value_cansleep’
    drivers/extcon/extcon-usb-gpio.c: In function ‘usb_extcon_probe’:
    drivers/extcon/extcon-usb-gpio.c:116: error: implicit declaration of function ‘devm_gpiod_get’
    drivers/extcon/extcon-usb-gpio.c:116: warning: assignment makes pointer from integer without a cast
    drivers/extcon/extcon-usb-gpio.c:122: error: implicit declaration of function ‘gpiod_set_debounce’
    drivers/extcon/extcon-usb-gpio.c:129: error: implicit declaration of function ‘gpiod_to_irq’

Add the missing #include <linux/gpio/consumer.h> to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2015-05-19 16:39:06 +09:00
..
extcon-adc-jack.c extcon: adc-jack: Remove the unneeded num_cables field 2015-05-19 16:39:06 +09:00
extcon-arizona.c extcon: arizona: Add support for select accessory detect mode when headphone detection 2015-05-19 16:39:05 +09:00
extcon-axp288.c extcon: axp288: Add axp288 extcon driver support 2015-05-19 16:39:04 +09:00
extcon-gpio.c extcon: drop owner assignment from platform_drivers 2014-10-20 16:20:30 +02:00
extcon-max8997.c extcon: Unify the dock device names on max8997/77693 2015-05-19 16:39:06 +09:00
extcon-max14577.c extcon: Unify the jig cable names on rt8973 and max14577/77693/77843 2015-05-19 16:39:05 +09:00
extcon-max77693.c extcon: Alter MHL-TA cable name to TA cable name 2015-05-19 16:39:06 +09:00
extcon-max77843.c extcon: Alter MHL-TA cable name to TA cable name 2015-05-19 16:39:06 +09:00
extcon-palmas.c extcon: drop owner assignment from platform_drivers 2014-10-20 16:20:30 +02:00
extcon-rt8973a.c extcon: Unify the jig cable names on rt8973 and max14577/77693/77843 2015-05-19 16:39:05 +09:00
extcon-rt8973a.h extcon: rt8973a: Add Richtek RT8973A extcon driver 2014-09-22 11:43:08 +09:00
extcon-sm5502.c extcon: Fix the checkpatch warning 2015-03-07 22:58:28 +09:00
extcon-sm5502.h extcon: sm5502: Move sm5502.h header file to extcon directory 2014-09-22 11:43:08 +09:00
extcon-usb-gpio.c extcon: Allow compile test of GPIO consumers if !GPIOLIB 2015-05-19 16:39:06 +09:00
extcon.c extcon: Fix the checkpatch warning and minor coding style issue 2015-05-19 16:39:04 +09:00
Kconfig extcon: Allow compile test of GPIO consumers if !GPIOLIB 2015-05-19 16:39:06 +09:00
Makefile extcon: axp288: Add axp288 extcon driver support 2015-05-19 16:39:04 +09:00