Skip to content

Commit 19d5b26

Browse files
Jimmy Assarssonmarckleinebudde
authored andcommitted
can: kvaser_usb: Explicitly initialize family in leafimx driver_info struct
Explicitly set the 'family' driver_info struct member for leafimx. Previously, the correct operation relied on KVASER_LEAF being the first defined value in enum kvaser_usb_leaf_family. Fixes: e6c80e6 ("can: kvaser_usb: kvaser_usb_leaf: fix CAN clock frequency regression") Signed-off-by: Jimmy Assarsson <[email protected]> Link: https://lore.kernel.org/all/[email protected] Cc: [email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 1340611 commit 19d5b26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ static const struct kvaser_usb_driver_info kvaser_usb_driver_info_leaf_err_liste
125125

126126
static const struct kvaser_usb_driver_info kvaser_usb_driver_info_leafimx = {
127127
.quirks = 0,
128+
.family = KVASER_LEAF,
128129
.ops = &kvaser_usb_leaf_dev_ops,
129130
};
130131

0 commit comments

Comments
 (0)