diff options
| author | MyungJoo Ham <myungjoo.ham@samsung.com> | 2012-04-20 01:16:23 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-20 12:22:02 -0400 |
| commit | be48308a24c7651bf968b561dbd590edb8166d62 (patch) | |
| tree | 7b7e7d49976f592171bdb75ea286d7b083946e64 /drivers/extcon/Kconfig | |
| parent | de55d8716ac50a356cea736c29bb7db5ac3d0190 (diff) | |
Extcon: support generic GPIO extcon driver
The generic GPIO extcon driver (an external connector device based on
GPIO control) and imported from Android kernel.
switch: switch class and GPIO drivers. (splitted)
Author: Mike Lockwood <lockwood@android.com>
switch: gpio: Don't call request_irq with interrupts disabled
Author: Arve Hjønnevåg <arve@android.com>
switch_gpio: Add missing #include <linux/interrupt.h>
Author: Mike Lockwood <lockwood@android.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
--
Changed from v7:
- Style updates mentioned by Stephen Boyd and Mark Brown
Changed from v5:
- Splitted at v5 from the main extcon patch.
- Added debounce time for irq handlers.
- Use request_any_context_irq instead of request_irq
- User needs to specify irq flags for GPIO interrupts (was fixed to
IRQF_TRIGGER_LOW before)
- Use module_platform_driver().
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/extcon/Kconfig')
| -rw-r--r-- | drivers/extcon/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/extcon/Kconfig b/drivers/extcon/Kconfig index 7932e1bd9b0..85cecff36db 100644 --- a/drivers/extcon/Kconfig +++ b/drivers/extcon/Kconfig | |||
| @@ -14,4 +14,11 @@ if EXTCON | |||
| 14 | 14 | ||
| 15 | comment "Extcon Device Drivers" | 15 | comment "Extcon Device Drivers" |
| 16 | 16 | ||
| 17 | config EXTCON_GPIO | ||
| 18 | tristate "GPIO extcon support" | ||
| 19 | depends on GENERIC_GPIO | ||
| 20 | help | ||
| 21 | Say Y here to enable GPIO based extcon support. Note that GPIO | ||
| 22 | extcon supports single state per extcon instance. | ||
| 23 | |||
| 17 | endif # MULTISTATE_SWITCH | 24 | endif # MULTISTATE_SWITCH |
