]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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 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;
 }