aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2013-07-10 05:29:06 -0400
committerChanwoo Choi <cw00.choi@samsung.com>2013-08-04 19:53:34 -0400
commit7281e05aabee7484624d448da208932690ed62b3 (patch)
tree27a6516f3d805e61c794d355f0e1c818497939d3 /include
parent024783ef422791d7ca58b106495f7c31802df6f3 (diff)
extcon: palmas: Option to disable ID/VBUS detection based on platform
Based on system design, platform needs to detect the VBUS or ID or both. Provide option to select this through platform data to disable part of cable detection through palmas-usb. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Acked-by: Graeme Gregory <gg@slimlogic.co.uk> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/palmas.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mfd/palmas.h b/include/linux/mfd/palmas.h
index 03c22ca55446..cfc678ceb570 100644
--- a/include/linux/mfd/palmas.h
+++ b/include/linux/mfd/palmas.h
@@ -377,6 +377,9 @@ struct palmas_usb {
377 int vbus_irq; 377 int vbus_irq;
378 378
379 enum palmas_usb_state linkstat; 379 enum palmas_usb_state linkstat;
380 int wakeup;
381 bool enable_vbus_detection;
382 bool enable_id_detection;
380}; 383};
381 384
382#define comparator_to_palmas(x) container_of((x), struct palmas_usb, comparator) 385#define comparator_to_palmas(x) container_of((x), struct palmas_usb, comparator)