#include <linux/kernel.h>
#include <linux/tty.h>
#include <linux/module.h>
#include <linux/usb.h>
#include <linux/usb/serial.h>
#include <linux/uaccess.h>
#define XSENS_VID …
#define MTi_10_IMU_PID …
#define MTi_20_VRU_PID …
#define MTi_30_AHRS_PID …
#define MTi_100_IMU_PID …
#define MTi_200_VRU_PID …
#define MTi_300_AHRS_PID …
#define MTi_G_700_GPS_INS_PID …
static const struct usb_device_id id_table[] = …;
MODULE_DEVICE_TABLE(usb, id_table);
static int xsens_mt_probe(struct usb_serial *serial,
const struct usb_device_id *id)
{ … }
static struct usb_serial_driver xsens_mt_device = …;
static struct usb_serial_driver * const serial_drivers[] = …;
module_usb_serial_driver(…);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;