summaryrefslogtreecommitdiffstats
path: root/drivers/extcon/extcon-usb-gpio.c
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2015-08-03 17:40:51 +0300
committerChanwoo Choi <cw00.choi@samsung.com>2015-08-10 21:26:25 +0900
commit92b7cb5dc885b38b21093eefed8028b615952965 (patch)
treede56922baf3fee8dd9ec7c7f9a43599de61c07f0 /drivers/extcon/extcon-usb-gpio.c
parenta598af7f0279195abffbfb9bf2070457e9c89ff3 (diff)
downloadlinux-stable-92b7cb5dc885b38b21093eefed8028b615952965.tar.gz
linux-stable-92b7cb5dc885b38b21093eefed8028b615952965.tar.bz2
linux-stable-92b7cb5dc885b38b21093eefed8028b615952965.zip
extcon: palmas: Support GPIO based USB ID detection
Some palmas based chip variants do not have OTG based ID logic. For these variants we rely on GPIO based USB ID detection. These chips do have VBUS comparator for VBUS detection so we continue to use the old way of detecting VBUS. Signed-off-by: Roger Quadros <rogerq@ti.com> Acked-by: Chanwoo Choi <cw00.choi@samsung.com> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon/extcon-usb-gpio.c')
-rw-r--r--drivers/extcon/extcon-usb-gpio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-usb-gpio.c
index a2a44536a608..2b2fecffb1ad 100644
--- a/drivers/extcon/extcon-usb-gpio.c
+++ b/drivers/extcon/extcon-usb-gpio.c
@@ -15,6 +15,7 @@
*/
#include <linux/extcon.h>
+#include <linux/gpio.h>
#include <linux/gpio/consumer.h>
#include <linux/init.h>
#include <linux/interrupt.h>