Lines Matching refs:vbus_gpiod
38 struct gpio_desc *vbus_gpiod; member
79 vbus = info->vbus_gpiod ? in usb_extcon_detect_cable()
80 gpiod_get_value_cansleep(info->vbus_gpiod) : id; in usb_extcon_detect_cable()
122 info->vbus_gpiod = devm_gpiod_get_optional(&pdev->dev, "vbus", in usb_extcon_probe()
125 if (!info->id_gpiod && !info->vbus_gpiod) { in usb_extcon_probe()
133 if (IS_ERR(info->vbus_gpiod)) in usb_extcon_probe()
134 return PTR_ERR(info->vbus_gpiod); in usb_extcon_probe()
151 if (!ret && info->vbus_gpiod) in usb_extcon_probe()
152 ret = gpiod_set_debounce(info->vbus_gpiod, in usb_extcon_probe()
178 if (info->vbus_gpiod) { in usb_extcon_probe()
179 info->vbus_irq = gpiod_to_irq(info->vbus_gpiod); in usb_extcon_probe()
227 if (info->vbus_gpiod) { in usb_extcon_suspend()
245 if (info->vbus_gpiod) in usb_extcon_suspend()
268 if (info->vbus_gpiod) { in usb_extcon_resume()
281 if (info->vbus_gpiod) in usb_extcon_resume()