#include <linux/device.h>
#include <linux/input.h>
#include <linux/hid.h>
#include <linux/module.h>
#include <linux/usb.h>
#include "hid-ids.h"
#define CH_WIRELESS_CTL_REPORT_ID …
static int ch_report_wireless(struct hid_report *report, u8 *data, int size)
{ … }
static int ch_raw_event(struct hid_device *hdev,
struct hid_report *report, u8 *data, int size)
{ … }
#define ch_map_key_clear(c) …
static int ch_input_mapping(struct hid_device *hdev, struct hid_input *hi,
struct hid_field *field, struct hid_usage *usage,
unsigned long **bit, int *max)
{ … }
static __u8 *ch_switch12_report_fixup(struct hid_device *hdev, __u8 *rdesc,
unsigned int *rsize)
{ … }
static int ch_probe(struct hid_device *hdev, const struct hid_device_id *id)
{ … }
static const struct hid_device_id ch_devices[] = …;
MODULE_DEVICE_TABLE(hid, ch_devices);
static struct hid_driver ch_driver = …;
module_hid_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;