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 <extja@kvaser.com> Link: https://lore.kernel.org/all/20240628194529.312968-1-extja@kvaser.com Cc: stable@vger.kernel.org Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
1 parent 1340611 commit 19d5b26

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)