OSDN Git Service

usb: typec: mux: Get the mux identifier from function parameter
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 27 Jun 2018 15:19:48 +0000 (18:19 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Jul 2018 15:42:36 +0000 (17:42 +0200)
commit93dd2112c7b2fa5512cc4aff2c449420487fcb68
treed0b5bb3ab01e529e962838209ba8b4a1b3913ebb
parent0bc26314957504e82dc9e3704422959db99b38ef
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>
drivers/usb/typec/class.c
drivers/usb/typec/mux.c
include/linux/usb/typec_mux.h