Lines Matching refs:cable

129 		struct extcon_dev *cable;  member
139 } cable; member
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()
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()
867 info->cable.edev = extcon_get_extcon_dev(AXP288_EXTCON_DEV_NAME); in axp288_charger_probe()
868 if (IS_ERR(info->cable.edev)) { in axp288_charger_probe()
869 dev_err_probe(dev, PTR_ERR(info->cable.edev), in axp288_charger_probe()
872 return PTR_ERR(info->cable.edev); in axp288_charger_probe()
876 info->otg.cable = extcon_get_extcon_dev(USB_HOST_EXTCON_NAME); in axp288_charger_probe()
877 if (IS_ERR(info->otg.cable)) { in axp288_charger_probe()
878 dev_err_probe(dev, PTR_ERR(info->otg.cable), in axp288_charger_probe()
881 return PTR_ERR(info->otg.cable); in axp288_charger_probe()
908 INIT_WORK(&info->cable.work, axp288_charger_extcon_evt_worker); in axp288_charger_probe()
909 info->cable.nb.notifier_call = axp288_charger_handle_cable_evt; in axp288_charger_probe()
910 ret = devm_extcon_register_notifier_all(dev, info->cable.edev, in axp288_charger_probe()
911 &info->cable.nb); in axp288_charger_probe()
916 schedule_work(&info->cable.work); in axp288_charger_probe()
921 if (info->otg.cable) { in axp288_charger_probe()
922 ret = devm_extcon_register_notifier(dev, info->otg.cable, in axp288_charger_probe()