Skip to content

Commit 142d0b2

Browse files
anderssongregkh
authored andcommitted
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: 3370db3 ("usb: typec: Registering real device entries for the muxes") Reviewed-by: Heikki Krogerus <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f247f0a commit 142d0b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/typec/mux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ static void *typec_mux_match(struct fwnode_handle *fwnode, const char *id,
239239
dev = class_find_device(&typec_mux_class, NULL, fwnode,
240240
mux_fwnode_match);
241241

242-
return dev ? to_typec_switch(dev) : ERR_PTR(-EPROBE_DEFER);
242+
return dev ? to_typec_mux(dev) : ERR_PTR(-EPROBE_DEFER);
243243
}
244244

245245
/**

0 commit comments

Comments
 (0)