extcon: max8997: Use workqueue to check cable state after completing boot of platform
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 13 Feb 2013 06:10:00 +0000 (15:10 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 13 Feb 2013 22:54:49 +0000 (07:54 +0900)
commitaf5eb1a13273447c5708cd5425696f3b6f79dd9b
treed32eb0d7ae1197eafd200505bcfdec6229665bc0
parent685dc9a7dbfede28cc4a0fe4e65804194ec04fa5
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>
drivers/extcon/extcon-max8997.c
include/linux/mfd/max8997.h