summaryrefslogtreecommitdiffstats
path: root/drivers/extcon/Kconfig
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2013-06-11 13:48:02 +0200
committerChanwoo Choi <cw00.choi@samsung.com>2013-08-05 01:52:45 +0200
commit6eee5b3b493824731ed34ade0299241f91f04096 (patch)
tree7bb211aa395c43ef155373fe7049219fadd417dd /drivers/extcon/Kconfig
parentLinux 3.11-rc3 (diff)
downloadlinux-6eee5b3b493824731ed34ade0299241f91f04096.tar.xz
linux-6eee5b3b493824731ed34ade0299241f91f04096.zip
extcon: Add an API to get extcon device from dt node
Added an API of_extcon_get_extcon_dev() to be used by drivers to get extcon device in the case of dt boot (this can be used instead of extcon_get_extcon_dev()). Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers/extcon/Kconfig')
-rw-r--r--drivers/extcon/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/extcon/Kconfig b/drivers/extcon/Kconfig
index 63f454e20576..f1d54a3985bd 100644
--- a/drivers/extcon/Kconfig
+++ b/drivers/extcon/Kconfig
@@ -14,6 +14,10 @@ if EXTCON
comment "Extcon Device Drivers"
+config OF_EXTCON
+ def_tristate y
+ depends on OF
+
config EXTCON_GPIO
tristate "GPIO extcon support"
depends on GPIOLIB