Merge tag 'md/4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md
[cascardo/linux.git] / drivers / extcon / extcon-gpio.c
index e7aebbc..ebed22f 100644 (file)
@@ -49,6 +49,7 @@ static void gpio_extcon_work(struct work_struct *work)
        state = gpiod_get_value_cansleep(data->id_gpiod);
        if (data->pdata->gpio_active_low)
                state = !state;
+
        extcon_set_state_sync(data->edev, data->pdata->extcon_id, state);
 }