summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2020-03-02 16:53:45 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-04 11:11:03 +0100
commitef441dd6af91e1f4265e890021ac3ad631b2b10e (patch)
tree10dd7ec0fbc977a2eda6269ae27c4a727908124c /include/linux
parent67540460193bb5dc3841590bc76e1421d56dc173 (diff)
downloadlwn-ef441dd6af91e1f4265e890021ac3ad631b2b10e.tar.gz
lwn-ef441dd6af91e1f4265e890021ac3ad631b2b10e.zip
usb: typec: mux: Allow the muxes to be named
The mux devices have been named by using the name of the parent device as base until now, but if for example the parent device has multiple muxes that will not work. This makes it possible to supply the name for a mux during registration. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://lore.kernel.org/r/20200302135353.56659-2-heikki.krogerus@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/usb/typec_mux.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/usb/typec_mux.h b/include/linux/usb/typec_mux.h
index be7292c0be5e..47ab5a828b07 100644
--- a/include/linux/usb/typec_mux.h
+++ b/include/linux/usb/typec_mux.h
@@ -17,6 +17,7 @@ typedef int (*typec_switch_set_fn_t)(struct typec_switch *sw,
struct typec_switch_desc {
struct fwnode_handle *fwnode;
typec_switch_set_fn_t set;
+ const char *name;
void *drvdata;
};
@@ -42,6 +43,7 @@ typedef int (*typec_mux_set_fn_t)(struct typec_mux *mux,
struct typec_mux_desc {
struct fwnode_handle *fwnode;
typec_mux_set_fn_t set;
+ const char *name;
void *drvdata;
};