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)
committerKishon Vijay Abraham I <kishon@ti.com>
Sat, 10 Sep 2016 11:18:42 +0000 (16:48 +0530)
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 44e48aa78a84bbdaf7f925bae5c80f8ffe634680..48dec94b487b500d939e1555946f7e3dcd57f4d0 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;
 }