extcon: Use the extcon_set_state_sync() instead of deprecated functions
[cascardo/linux.git] / drivers / extcon / extcon-gpio.c
index b1b0264..e7aebbc 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)