]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
usb: typec: mux: Fix copy-paste mistake in typec_mux_match
authorBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 10 Jun 2021 00:21:32 +0000 (17:21 -0700)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 15 Jul 2021 17:24:09 +0000 (19:24 +0200)
commit530dfc6d999f77efc132373c84b6ca121d9a7aca
treed0e473dc821f7ed7e6e5f986f1dd15246b170ec7
parent67596d54685dbc8b0430e486c8a7366347149e0b
usb: typec: mux: Fix copy-paste mistake in typec_mux_match

BugLink: https://bugs.launchpad.net/bugs/1934012
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/usb/typec/mux.c