OSDN Git Service

can: kvaser_usb: Split driver into kvaser_usb_core.c and kvaser_usb_leaf.c
authorJimmy Assarsson <extja@kvaser.com>
Wed, 18 Jul 2018 21:29:28 +0000 (23:29 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 27 Jul 2018 08:40:19 +0000 (10:40 +0200)
commit7259124eac7d1b76b41c7a9cb2511a30556deebe
tree9c5049132b82f5907375b4bc0af63eaead8d47eb
parente0543f2479f811e431005906462c04a9b582caee
can: kvaser_usb: Split driver into kvaser_usb_core.c and kvaser_usb_leaf.c

First part of adding support for Kvaser USB device family "hydra".

Split kvaser_usb.c into kvaser_usb/kvaser_usb{.h,_core.c,_leaf.c}.

kvaser_usb_core.c contains common functionality, such as USB
writing/reading and allocation of netdev.
kvaser_usb_leaf.c contains device specific code, used in
kvaser_usb_core.c.

struct kvaser_usb_dev_ops contains device specific functions that are
common for all devices in the family. While, struct kvaser_usb_dev_cfg
describes the device configurations in terms of CAN clock frequency,
timestamp frequency and CAN controller bittiming constants.

Signed-off-by: Jimmy Assarsson <extja@kvaser.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/Makefile
drivers/net/can/usb/kvaser_usb.c [deleted file]
drivers/net/can/usb/kvaser_usb/Makefile [new file with mode: 0644]
drivers/net/can/usb/kvaser_usb/kvaser_usb.h [new file with mode: 0644]
drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c [new file with mode: 0644]
drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c [new file with mode: 0644]