Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f47c1c07 authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Lee Jones
Browse files

UPSTREAM: usb: typec: mux: Fix copy-paste mistake in typec_mux_match



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.

Bug: 254441685
Fixes: 3370db35193b ("usb: typec: Registering real device entries for the muxes")
Reviewed-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210610002132.3088083-1-bjorn.andersson@linaro.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 142d0b24c1b17139f1aaaacae7542a38aa85640f)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: Iab4639186ca8479accf3458fed3b34d95ec7d3d4
parent 6af002b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment