aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2018-06-27 11:19:48 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-02 11:42:36 -0400
commit93dd2112c7b2fa5512cc4aff2c449420487fcb68 (patch)
treed0b5bb3ab01e529e962838209ba8b4a1b3913ebb /include/linux/usb
parent0bc26314957504e82dc9e3704422959db99b38ef (diff)
usb: typec: mux: Get the mux identifier from function parameter
In order for the muxes to be usable with alternate modes, the alternate mode devices will need also to be able to get a handle to the muxes on top of the port devices. To make that possible, the muxes need to be possible to request with an identifier. This will change the API so that the mux identifier is given as a function parameter to typec_mux_get(), and the hard-coded "typec-mux" is replaced with that value. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Tested-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/typec_mux.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb/typec_mux.h b/include/linux/usb/typec_mux.h
index 12c1b057834b..79293f630ee1 100644
--- a/include/linux/usb/typec_mux.h
+++ b/include/linux/usb/typec_mux.h
@@ -47,7 +47,7 @@ void typec_switch_put(struct typec_switch *sw);
47int typec_switch_register(struct typec_switch *sw); 47int typec_switch_register(struct typec_switch *sw);
48void typec_switch_unregister(struct typec_switch *sw); 48void typec_switch_unregister(struct typec_switch *sw);
49 49
50struct typec_mux *typec_mux_get(struct device *dev); 50struct typec_mux *typec_mux_get(struct device *dev, const char *name);
51void typec_mux_put(struct typec_mux *mux); 51void typec_mux_put(struct typec_mux *mux);
52int typec_mux_register(struct typec_mux *mux); 52int typec_mux_register(struct typec_mux *mux);
53void typec_mux_unregister(struct typec_mux *mux); 53void typec_mux_unregister(struct typec_mux *mux);