diff options
| author | 2018-06-27 18:19:48 +0300 | |
|---|---|---|
| committer | 2018-07-02 17:42:36 +0200 | |
| commit | 93dd2112c7b2fa5512cc4aff2c449420487fcb68 (patch) | |
| tree | d0b5bb3ab01e529e962838209ba8b4a1b3913ebb /drivers/usb/typec/class.c | |
| parent | usb: update for tcpci drivers moving out of staging (diff) | |
| download | wireguard-linux-93dd2112c7b2fa5512cc4aff2c449420487fcb68.tar.xz wireguard-linux-93dd2112c7b2fa5512cc4aff2c449420487fcb68.zip | |
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 'drivers/usb/typec/class.c')
| -rw-r--r-- | drivers/usb/typec/class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/typec/class.c b/drivers/usb/typec/class.c index 3ef7b99b080f..784e928303d7 100644 --- a/drivers/usb/typec/class.c +++ b/drivers/usb/typec/class.c @@ -1407,7 +1407,7 @@ struct typec_port *typec_register_port(struct device *parent, goto err_switch; } - port->mux = typec_mux_get(cap->fwnode ? &port->dev : parent); + port->mux = typec_mux_get(parent, "typec-mux"); if (IS_ERR(port->mux)) { ret = PTR_ERR(port->mux); goto err_mux; |
