]> Git Repo - linux.git/commit
usb: roles: Provide the switch drivers handle to the switch in the API
authorHeikki Krogerus <[email protected]>
Mon, 2 Mar 2020 13:53:49 +0000 (16:53 +0300)
committerGreg Kroah-Hartman <[email protected]>
Wed, 4 Mar 2020 10:12:50 +0000 (11:12 +0100)
commitbce3052f0c165685a074e50136e4d341bcd59f4a
treeaca5d7b0f95155a2195508e877dbb810fb985826
parent69af044a7700552512a147e2ce3520741b65df41
usb: roles: Provide the switch drivers handle to the switch in the API

The USB role callback functions had a parameter pointing to
the parent device (struct device) of the switch. The
assumption was that the switch parent is always the
controller. Firstly, that may not be true in every case, and
secondly, it prevents us from supporting devices that supply
multiple muxes.

Changing the first parameter of usb_role_switch_set_t and
usb_role_switch_get_t from struct device to struct
usb_role_switch.

Cc: Peter Chen <[email protected]>
Cc: Felipe Balbi <[email protected]>
Cc: Chunfeng Yun <[email protected]>
Cc: Bin Liu <[email protected]>
Signed-off-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/cdns3/core.c
drivers/usb/chipidea/core.c
drivers/usb/dwc3/dwc3-meson-g12a.c
drivers/usb/gadget/udc/renesas_usb3.c
drivers/usb/gadget/udc/tegra-xudc.c
drivers/usb/mtu3/mtu3_dr.c
drivers/usb/musb/mediatek.c
drivers/usb/roles/class.c
drivers/usb/roles/intel-xhci-usb-role-switch.c
include/linux/usb/role.h
This page took 0.075333 seconds and 4 git commands to generate.