summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/max8997.h
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2013-02-13 15:10:00 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2013-02-14 07:54:49 +0900
commitaf5eb1a13273447c5708cd5425696f3b6f79dd9b (patch)
treed32eb0d7ae1197eafd200505bcfdec6229665bc0 /include/linux/mfd/max8997.h
parent685dc9a7dbfede28cc4a0fe4e65804194ec04fa5 (diff)
downloadlinux-af5eb1a13273447c5708cd5425696f3b6f79dd9b.tar.gz
linux-af5eb1a13273447c5708cd5425696f3b6f79dd9b.tar.bz2
linux-af5eb1a13273447c5708cd5425696f3b6f79dd9b.zip
extcon: max8997: Use workqueue to check cable state after completing boot of platform
This patch use delayed workqueue to check cable state after a certain time. If extcon-max8997 driver check cable state during booting of platform, this couldn't send the correct notification of cable state to extcon consumer. Alwasys, this driver should check cable state after the completion of platform initialization Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'include/linux/mfd/max8997.h')
-rw-r--r--include/linux/mfd/max8997.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mfd/max8997.h b/include/linux/mfd/max8997.h
index 2d2d67b6a393..cf815577bd68 100644
--- a/include/linux/mfd/max8997.h
+++ b/include/linux/mfd/max8997.h
@@ -93,6 +93,9 @@ struct max8997_muic_platform_data {
struct max8997_muic_reg_data *init_data;
int num_init_data;
+ /* Check cable state after certain delay */
+ int detcable_delay_ms;
+
/*
* Default usb/uart path whether UART/USB or AUX_UART/AUX_USB
* h/w path of COMP2/COMN1 on CONTROL1 register.