Lines Matching defs:edev
206 * @edev: extcon device for notification registration
220 struct extcon_dev *edev;
374 struct extcon_dev *edev;
377 edev = extcon_get_edev_by_phandle(rphy->dev, 0);
378 if (IS_ERR(edev)) {
379 if (PTR_ERR(edev) != -EPROBE_DEFER)
381 return PTR_ERR(edev);
385 edev = devm_extcon_dev_allocate(rphy->dev,
388 if (IS_ERR(edev))
391 ret = devm_extcon_dev_register(rphy->dev, edev);
398 rphy->edev = edev;
553 if (extcon_get_state(rphy->edev, EXTCON_USB_HOST) > 0) {
605 if (notify_charger && rphy->edev) {
606 extcon_set_state_sync(rphy->edev,
609 extcon_set_state_sync(rphy->edev,
627 if (extcon_get_state(rphy->edev, EXTCON_USB_HOST) == 0) {
1051 if (!IS_ERR(rphy->edev)) {
1054 ret = devm_extcon_register_notifier(rphy->dev, rphy->edev,