linux/drivers/usb/mtu3
Heikki Krogerus bce3052f0c 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 <Peter.Chen@nxp.com>
Cc: Felipe Balbi <balbi@kernel.org>
Cc: Chunfeng Yun <chunfeng.yun@mediatek.com>
Cc: Bin Liu <b-liu@ti.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200302135353.56659-6-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-04 11:12:50 +01:00
..
Kconfig usb: mtu3: register a USB Role Switch for dual role mode 2019-09-03 20:02:15 +02:00
Makefile usb: mtu3: add tracepoints to help debug 2019-03-26 16:40:14 +09:00
mtu3.h usb: mtu3: register a USB Role Switch for dual role mode 2019-09-03 20:02:15 +02:00
mtu3_core.c usb: mtu3: fix missing include of mtu3_dr.h 2019-10-27 08:58:44 +02:00
mtu3_debug.h usb: mtu3: add tracepoints to help debug 2019-03-26 16:40:14 +09:00
mtu3_debugfs.c usb: mtu3: register a USB Role Switch for dual role mode 2019-09-03 20:02:15 +02:00
mtu3_dr.c usb: roles: Provide the switch drivers handle to the switch in the API 2020-03-04 11:12:50 +01:00
mtu3_dr.h usb: mtu3: register a USB Role Switch for dual role mode 2019-09-03 20:02:15 +02:00
mtu3_gadget.c usb: mtu3: add tracepoints to help debug 2019-03-26 16:40:14 +09:00
mtu3_gadget_ep0.c usb: mtu3: fix race condition about delayed_status 2019-10-10 12:34:06 +02:00
mtu3_host.c usb: mtu3: fix semicolon.cocci warnings 2018-01-16 10:01:01 +01:00
mtu3_hw_regs.h usb: mtu3: add debugfs interface files 2019-03-26 16:40:14 +09:00
mtu3_plat.c usb: mtu3: register a USB Role Switch for dual role mode 2019-09-03 20:02:15 +02:00
mtu3_qmu.c usb: mtu3: add tracepoints to help debug 2019-03-26 16:40:14 +09:00
mtu3_qmu.h usb: mtu3: supports new QMU format 2019-03-26 16:40:13 +09:00
mtu3_trace.c usb: mtu3: add tracepoints to help debug 2019-03-26 16:40:14 +09:00
mtu3_trace.h usb: mtu3: add tracepoints to help debug 2019-03-26 16:40:14 +09:00