Lines Matching defs:edev
236 * @edev: extcon device for notification registration
252 struct extcon_dev *edev;
419 struct extcon_dev *edev;
422 edev = extcon_get_edev_by_phandle(rphy->dev, 0);
423 if (IS_ERR(edev)) {
424 if (PTR_ERR(edev) != -EPROBE_DEFER)
426 return PTR_ERR(edev);
430 edev = devm_extcon_dev_allocate(rphy->dev,
433 if (IS_ERR(edev))
436 ret = devm_extcon_dev_register(rphy->dev, edev);
443 rphy->edev = edev;
653 if (extcon_get_state(rphy->edev, EXTCON_USB_HOST) > 0) {
705 if (notify_charger && rphy->edev) {
706 extcon_set_state_sync(rphy->edev,
709 extcon_set_state_sync(rphy->edev,
727 if (extcon_get_state(rphy->edev, EXTCON_USB_HOST) == 0) {
1042 extcon_set_state_sync(rphy->edev, EXTCON_USB_HOST, !id);
1279 if (!IS_ERR(rphy->edev)) {
1282 ret = devm_extcon_register_notifier(rphy->dev, rphy->edev,
1292 extcon_set_state_sync(rphy->edev, EXTCON_USB_HOST, !id);