diff options
author | Roger Quadros <rogerq@ti.com> | 2015-08-03 14:40:51 (GMT) |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2015-08-10 12:26:25 (GMT) |
commit | 92b7cb5dc885b38b21093eefed8028b615952965 (patch) | |
tree | de56922baf3fee8dd9ec7c7f9a43599de61c07f0 /drivers/extcon/extcon-usb-gpio.c | |
parent | a598af7f0279195abffbfb9bf2070457e9c89ff3 (diff) | |
download | linux-92b7cb5dc885b38b21093eefed8028b615952965.tar.xz |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-usb-gpio.c index a2a4453..2b2fecf 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> |