#include <linux/hid.h>
#include <linux/input.h>
#include <linux/module.h>
#include <linux/slab.h>
#include "hid-ids.h"
struct mwctrl_device { … };
static int mwctrl_play(struct input_dev *dev, void *data,
struct ff_effect *effect)
{ … }
static int mwctrl_init(struct hid_device *hid)
{ … }
static int mwctrl_probe(struct hid_device *hdev, const struct hid_device_id *id)
{ … }
static const struct hid_device_id mwctrl_devices[] = …;
MODULE_DEVICE_TABLE(hid, mwctrl_devices);
static struct hid_driver mwctrl_driver = …;
module_hid_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;