diff options
| author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2021-06-09 17:21:32 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-16 12:05:12 +0200 |
| commit | 95aadff4afa00b3c362dafe0b7fb948c513d0d7d (patch) | |
| tree | dbf6bcc134934389e00d01dc40a7db5cf80fa022 | |
| parent | 0908fb0e80d8385c2ec3b3e94b136d85fdbfeee9 (diff) | |
| download | linux-95aadff4afa00b3c362dafe0b7fb948c513d0d7d.tar.gz linux-95aadff4afa00b3c362dafe0b7fb948c513d0d7d.tar.bz2 linux-95aadff4afa00b3c362dafe0b7fb948c513d0d7d.zip | |
usb: typec: mux: Fix copy-paste mistake in typec_mux_match
commit 142d0b24c1b17139f1aaaacae7542a38aa85640f upstream.
Fix the copy-paste mistake in the return path of typec_mux_match(),
where dev is considered a member of struct typec_switch rather than
struct typec_mux.
The two structs are identical in regards to having the struct device as
the first entry, so this provides no functional change.
Fixes: 3370db35193b ("usb: typec: Registering real device entries for the muxes")
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210610002132.3088083-1-bjorn.andersson@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/usb/typec/mux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/typec/mux.c b/drivers/usb/typec/mux.c index 42acdc8b684f..b9035c3407b5 100644 --- a/drivers/usb/typec/mux.c +++ b/drivers/usb/typec/mux.c @@ -239,7 +239,7 @@ find_mux: dev = class_find_device(&typec_mux_class, NULL, fwnode, mux_fwnode_match); - return dev ? to_typec_switch(dev) : ERR_PTR(-EPROBE_DEFER); + return dev ? to_typec_mux(dev) : ERR_PTR(-EPROBE_DEFER); } /** |
