extcon: adc-jack: update cable state during boot
authorVenkat Reddy Talla <vreddytalla@nvidia.com>
Tue, 5 Jul 2016 13:56:21 +0000 (19:26 +0530)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 8 Aug 2016 01:58:35 +0000 (10:58 +0900)
Update cable state during boot to avoid any missing
external cable events occurred before driver initialisation.

Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-adc-jack.c

index 44e48aa..48dec94 100644 (file)
@@ -158,6 +158,7 @@ static int adc_jack_probe(struct platform_device *pdev)
        if (data->wakeup_source)
                device_init_wakeup(&pdev->dev, 1);
 
+       adc_jack_handler(&data->handler.work);
        return 0;
 }