Lines Matching full:cable

125 		struct extcon_dev *cable;  member
130 /* SDP/CDP/DCP USB charging cable notifications */
135 } cable; member
568 * an OTG host cable is inserted and the ID pin on the micro-B receptacle is
571 * OTG host cable is removed. The Type-C connector has no ID pin, there is
595 container_of(work, struct axp288_chrg_info, cable.work); in axp288_charger_extcon_evt_worker()
597 struct extcon_dev *edev = info->cable.edev; in axp288_charger_extcon_evt_worker()
614 /* Determine cable/charger type */ in axp288_charger_extcon_evt_worker()
648 container_of(nb, struct axp288_chrg_info, cable.nb); in axp288_charger_handle_cable_evt()
649 schedule_work(&info->cable.work); in axp288_charger_handle_cable_evt()
657 struct extcon_dev *edev = info->otg.cable; in axp288_charger_otg_evt_worker()
788 cancel_work_sync(&info->cable.work); in axp288_charger_cancel_work()
818 info->cable.edev = extcon_get_extcon_dev(AXP288_EXTCON_DEV_NAME); in axp288_charger_probe()
819 if (info->cable.edev == NULL) { in axp288_charger_probe()
826 info->otg.cable = extcon_get_extcon_dev(USB_HOST_EXTCON_NAME); in axp288_charger_probe()
827 if (info->otg.cable == NULL) { in axp288_charger_probe()
857 INIT_WORK(&info->cable.work, axp288_charger_extcon_evt_worker); in axp288_charger_probe()
858 info->cable.nb.notifier_call = axp288_charger_handle_cable_evt; in axp288_charger_probe()
859 ret = devm_extcon_register_notifier_all(dev, info->cable.edev, in axp288_charger_probe()
860 &info->cable.nb); in axp288_charger_probe()
862 dev_err(dev, "failed to register cable extcon notifier\n"); in axp288_charger_probe()
865 schedule_work(&info->cable.work); in axp288_charger_probe()
870 if (info->otg.cable) { in axp288_charger_probe()
871 ret = devm_extcon_register_notifier(&pdev->dev, info->otg.cable, in axp288_charger_probe()