]> git.baikalelectronics.ru Git - 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jun 2021 18:03:06 +0000 (20:03 +0200)
commite50a0d92b735d97801fb6124ab03096ddde0f6e5
tree65848ab1cd56723dc0e71a1b1d60bb34a79f15f5
parent650b57ec26a3e22f6d47aa50ae48bff3a4a801a4
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.

Fixes: 02aee09b5386 ("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>
drivers/usb/typec/mux.c