#include <linux/device.h>
#include <linux/hid.h>
#include <linux/module.h>
#include "hid-ids.h"
struct zc_device { … };
static __u8 *zc_report_fixup(struct hid_device *hdev, __u8 *rdesc,
unsigned int *rsize)
{ … }
#define zc_map_key_clear(c) …
static int zc_input_mapping(struct hid_device *hdev, struct hid_input *hi,
struct hid_field *field, struct hid_usage *usage,
unsigned long **bit, int *max)
{ … }
static int zc_raw_event(struct hid_device *hdev, struct hid_report *report,
u8 *data, int size)
{ … }
static int zc_probe(struct hid_device *hdev, const struct hid_device_id *id)
{ … }
static const struct hid_device_id zc_devices[] = …;
MODULE_DEVICE_TABLE(hid, zc_devices);
static struct hid_driver zc_driver = …;
module_hid_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;