Lines Matching full:cable

129 		struct extcon_dev *cable;  member
134 /* SDP/CDP/DCP USB charging cable notifications */
139 } cable; member
588 * an OTG host cable is inserted and the ID pin on the micro-B receptacle is
591 * OTG host cable is removed. The Type-C connector has no ID pin, there is
620 container_of(work, struct axp288_chrg_info, cable.work); in axp288_charger_extcon_evt_worker()
622 struct extcon_dev *edev = info->cable.edev; in axp288_charger_extcon_evt_worker()
642 /* Determine cable/charger type */ in axp288_charger_extcon_evt_worker()
679 container_of(nb, struct axp288_chrg_info, cable.nb); in axp288_charger_handle_cable_evt()
680 schedule_work(&info->cable.work); in axp288_charger_handle_cable_evt()
688 struct extcon_dev *edev = info->otg.cable; in axp288_charger_otg_evt_worker()
829 cancel_work_sync(&info->cable.work); in axp288_charger_cancel_work()
868 info->cable.edev = extcon_get_extcon_dev(AXP288_EXTCON_DEV_NAME); in axp288_charger_probe()
869 if (IS_ERR(info->cable.edev)) { in axp288_charger_probe()
870 dev_err_probe(dev, PTR_ERR(info->cable.edev), in axp288_charger_probe()
873 return PTR_ERR(info->cable.edev); in axp288_charger_probe()
887 info->otg.cable = extcon_get_extcon_dev(extcon_name); in axp288_charger_probe()
888 if (IS_ERR(info->otg.cable)) { in axp288_charger_probe()
889 dev_err_probe(dev, PTR_ERR(info->otg.cable), in axp288_charger_probe()
892 return PTR_ERR(info->otg.cable); in axp288_charger_probe()
919 INIT_WORK(&info->cable.work, axp288_charger_extcon_evt_worker); in axp288_charger_probe()
920 info->cable.nb.notifier_call = axp288_charger_handle_cable_evt; in axp288_charger_probe()
921 ret = devm_extcon_register_notifier_all(dev, info->cable.edev, in axp288_charger_probe()
922 &info->cable.nb); in axp288_charger_probe()
924 dev_err(dev, "failed to register cable extcon notifier\n"); in axp288_charger_probe()
927 schedule_work(&info->cable.work); in axp288_charger_probe()
932 if (info->otg.cable) { in axp288_charger_probe()
933 ret = devm_extcon_register_notifier(dev, info->otg.cable, in axp288_charger_probe()