Home
last modified time | relevance | path

Searched refs:dev_role_sw (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.15/drivers/misc/
Dhisi_hikey_usb.c44 struct usb_role_switch *dev_role_sw; member
104 if (!hisi_hikey_usb || !hisi_hikey_usb->dev_role_sw) in relay_set_role_switch()
127 sw = hisi_hikey_usb->dev_role_sw; in relay_set_role_switch()
138 if (!hisi_hikey_usb || !hisi_hikey_usb->dev_role_sw) in hub_usb_role_switch_set()
211 hisi_hikey_usb->dev_role_sw = usb_role_switch_get(dev); in hisi_hikey_usb_probe()
212 if (!hisi_hikey_usb->dev_role_sw) in hisi_hikey_usb_probe()
214 if (IS_ERR(hisi_hikey_usb->dev_role_sw)) in hisi_hikey_usb_probe()
215 return PTR_ERR(hisi_hikey_usb->dev_role_sw); in hisi_hikey_usb_probe()
228 usb_role_switch_put(hisi_hikey_usb->dev_role_sw); in hisi_hikey_usb_probe()
244 if (hisi_hikey_usb->dev_role_sw) in hisi_hikey_usb_remove()
[all …]