Lines Matching refs:cable
129 struct extcon_dev *cable;
134 /* SDP/CDP/DCP USB charging cable notifications */
139 } cable;
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);
622 struct extcon_dev *edev = info->cable.edev;
642 /* Determine cable/charger type */
679 container_of(nb, struct axp288_chrg_info, cable.nb);
680 schedule_work(&info->cable.work);
688 struct extcon_dev *edev = info->otg.cable;
829 cancel_work_sync(&info->cable.work);
868 info->cable.edev = extcon_get_extcon_dev(AXP288_EXTCON_DEV_NAME);
869 if (IS_ERR(info->cable.edev)) {
870 dev_err_probe(dev, PTR_ERR(info->cable.edev),
873 return PTR_ERR(info->cable.edev);
887 info->otg.cable = extcon_get_extcon_dev(extcon_name);
888 if (IS_ERR(info->otg.cable)) {
889 dev_err_probe(dev, PTR_ERR(info->otg.cable),
892 return PTR_ERR(info->otg.cable);
919 INIT_WORK(&info->cable.work, axp288_charger_extcon_evt_worker);
920 info->cable.nb.notifier_call = axp288_charger_handle_cable_evt;
921 ret = devm_extcon_register_notifier_all(dev, info->cable.edev,
922 &info->cable.nb);
924 dev_err(dev, "failed to register cable extcon notifier\n");
927 schedule_work(&info->cable.work);
932 if (info->otg.cable) {
933 ret = devm_extcon_register_notifier(dev, info->otg.cable,