On 08.12.2021 12:09:40, Jimmy Assarsson wrote: > Get the CAN clock frequency from device, since the various Kvaser Leaf > products use different CAN clocks. > > Signed-off-by: Jimmy Assarsson <extja@xxxxxxxxxx> > --- > Changes in v2: > - Rebased on [PATCH v5 0/5] fix statistics and payload issues for > error [1] series. > > [1] > https://lore.kernel.org/all/20211207121531.42941-1-mailhol.vincent@xxxxxxxxxx > > .../net/can/usb/kvaser_usb/kvaser_usb_leaf.c | 69 ++++++++++++++++--- > 1 file changed, 60 insertions(+), 9 deletions(-) > > diff --git a/drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c b/drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c > index 533e25cb4337..093c092226b6 100644 > --- a/drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c > +++ b/drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c > @@ -29,10 +29,12 @@ > > #include "kvaser_usb.h" > > -/* Forward declaration */ > -static const struct kvaser_usb_dev_cfg kvaser_usb_leaf_dev_cfg; > +/* Forward declarations */ > +static const struct kvaser_usb_dev_cfg kvaser_usb_leaf_dev_cfg_8mhz; > +static const struct kvaser_usb_dev_cfg kvaser_usb_leaf_dev_cfg_16mhz; > +static const struct kvaser_usb_dev_cfg kvaser_usb_leaf_dev_cfg_24mhz; > +static const struct kvaser_usb_dev_cfg kvaser_usb_leaf_dev_cfg_32mhz; Can you re-arrange the code, so that you don't need the forward declarations? Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Attachment:
signature.asc
Description: PGP signature