extcon: Use the extcon_set_state_sync() instead of deprecated functions
[deliverable/linux.git] / drivers / extcon / extcon-max3355.c
index c24abec5d06cf0e264af44eb29116afa0b5ad744..533e16a952b848b5db0d0842740ad46be85edd4b 100644 (file)
@@ -39,16 +39,16 @@ static irqreturn_t max3355_id_irq(int irq, void *dev_id)
                 * As we don't have event for USB peripheral cable attached,
                 * we simulate USB peripheral attach here.
                 */
-               extcon_set_cable_state_(data->edev, EXTCON_USB_HOST, false);
-               extcon_set_cable_state_(data->edev, EXTCON_USB, true);
+               extcon_set_state_sync(data->edev, EXTCON_USB_HOST, false);
+               extcon_set_state_sync(data->edev, EXTCON_USB, true);
        } else {
                /*
                 * ID = 0 means USB HOST cable attached.
                 * As we don't have event for USB peripheral cable detached,
                 * we simulate USB peripheral detach here.
                 */
-               extcon_set_cable_state_(data->edev, EXTCON_USB, false);
-               extcon_set_cable_state_(data->edev, EXTCON_USB_HOST, true);
+               extcon_set_state_sync(data->edev, EXTCON_USB, false);
+               extcon_set_state_sync(data->edev, EXTCON_USB_HOST, true);
        }
 
        return IRQ_HANDLED;
This page took 0.025996 seconds and 5 git commands to generate.