Lines Matching full:extcon
18 #include <linux/extcon-provider.h>
53 struct extcon_dev *extcon; member
117 extcon_set_state_sync(tu->extcon, EXTCON_USB, tu->vbus_state); in check_vbus_state()
126 extcon_set_state_sync(tu->extcon, EXTCON_USB_HOST, true); in tahvo_usb_become_host()
145 extcon_set_state_sync(tu->extcon, EXTCON_USB_HOST, false); in tahvo_usb_become_peripheral()
354 tu->extcon = devm_extcon_dev_allocate(&pdev->dev, tahvo_cable); in tahvo_usb_probe()
355 if (IS_ERR(tu->extcon)) { in tahvo_usb_probe()
356 dev_err(&pdev->dev, "failed to allocate memory for extcon\n"); in tahvo_usb_probe()
357 ret = PTR_ERR(tu->extcon); in tahvo_usb_probe()
361 ret = devm_extcon_dev_register(&pdev->dev, tu->extcon); in tahvo_usb_probe()
363 dev_err(&pdev->dev, "could not register extcon device: %d\n", in tahvo_usb_probe()
369 extcon_set_state_sync(tu->extcon, EXTCON_USB_HOST, in tahvo_usb_probe()
371 extcon_set_state_sync(tu->extcon, EXTCON_USB, tu->vbus_state); in tahvo_usb_probe()