extcon: Use the extcon_set_state_sync() instead of deprecated functions
[deliverable/linux.git] / drivers / extcon / extcon-gpio.c
index b1b0264eb12db59f81f12e15e43e0f2cf3a168e9..e7aebbc945f65bc24f846efbc465efb1f969db98 100644 (file)
@@ -49,7 +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_cable_state_(data->edev, data->pdata->extcon_id, state);
+       extcon_set_state_sync(data->edev, data->pdata->extcon_id, state);
 }
 
 static irqreturn_t gpio_irq_handler(int irq, void *dev_id)
This page took 0.024284 seconds and 5 git commands to generate.