Lines Matching full:cable
125 struct extcon_dev *cable; member
130 /* SDP/CDP/DCP USB charging cable notifications */
135 } cable; member
569 * an OTG host cable is inserted and the ID pin on the micro-B receptacle is
572 * OTG host cable is removed. The Type-C connector has no ID pin, there is
601 container_of(work, struct axp288_chrg_info, cable.work); in axp288_charger_extcon_evt_worker()
603 struct extcon_dev *edev = info->cable.edev; in axp288_charger_extcon_evt_worker()
620 /* Determine cable/charger type */ in axp288_charger_extcon_evt_worker()
654 container_of(nb, struct axp288_chrg_info, cable.nb); in axp288_charger_handle_cable_evt()
655 schedule_work(&info->cable.work); in axp288_charger_handle_cable_evt()
663 struct extcon_dev *edev = info->otg.cable; in axp288_charger_otg_evt_worker()
804 cancel_work_sync(&info->cable.work); in axp288_charger_cancel_work()
834 info->cable.edev = extcon_get_extcon_dev(AXP288_EXTCON_DEV_NAME); in axp288_charger_probe()
835 if (info->cable.edev == NULL) { in axp288_charger_probe()
842 info->otg.cable = extcon_get_extcon_dev(USB_HOST_EXTCON_NAME); in axp288_charger_probe()
843 if (info->otg.cable == NULL) { in axp288_charger_probe()
873 INIT_WORK(&info->cable.work, axp288_charger_extcon_evt_worker); in axp288_charger_probe()
874 info->cable.nb.notifier_call = axp288_charger_handle_cable_evt; in axp288_charger_probe()
875 ret = devm_extcon_register_notifier_all(dev, info->cable.edev, in axp288_charger_probe()
876 &info->cable.nb); in axp288_charger_probe()
878 dev_err(dev, "failed to register cable extcon notifier\n"); in axp288_charger_probe()
881 schedule_work(&info->cable.work); in axp288_charger_probe()
886 if (info->otg.cable) { in axp288_charger_probe()
887 ret = devm_extcon_register_notifier(&pdev->dev, info->otg.cable, in axp288_charger_probe()