aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChanwoo Choi2013-02-13 15:10:00 +0900
committerChanwoo Choi2013-02-14 07:54:49 +0900
commitaf5eb1a13273447c5708cd5425696f3b6f79dd9b (patch)
treed32eb0d7ae1197eafd200505bcfdec6229665bc0 /include/linux
parent685dc9a7dbfede28cc4a0fe4e65804194ec04fa5 (diff)
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')
-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.