Lines Matching defs:cable
125 struct extcon_dev *cable;
130 /* SDP/CDP/DCP USB charging cable notifications */
135 } cable;
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);
603 struct extcon_dev *edev = info->cable.edev;
620 /* Determine cable/charger type */
654 container_of(nb, struct axp288_chrg_info, cable.nb);
655 schedule_work(&info->cable.work);
663 struct extcon_dev *edev = info->otg.cable;
804 cancel_work_sync(&info->cable.work);
834 info->cable.edev = extcon_get_extcon_dev(AXP288_EXTCON_DEV_NAME);
835 if (info->cable.edev == NULL) {
842 info->otg.cable = extcon_get_extcon_dev(USB_HOST_EXTCON_NAME);
843 if (info->otg.cable == NULL) {
873 INIT_WORK(&info->cable.work, axp288_charger_extcon_evt_worker);
874 info->cable.nb.notifier_call = axp288_charger_handle_cable_evt;
875 ret = devm_extcon_register_notifier_all(dev, info->cable.edev,
876 &info->cable.nb);
878 dev_err(dev, "failed to register cable extcon notifier\n");
881 schedule_work(&info->cable.work);
886 if (info->otg.cable) {
887 ret = devm_extcon_register_notifier(&pdev->dev, info->otg.cable,