#include <linux/hid.h>
#include <linux/input.h>
#include <linux/slab.h>
#include <linux/module.h>
#include "hid-ids.h"
#ifdef CONFIG_ZEROPLUS_FF
struct zpff_device { … };
static int zpff_play(struct input_dev *dev, void *data,
struct ff_effect *effect)
{ … }
static int zpff_init(struct hid_device *hid)
{ … }
#else
static inline int zpff_init(struct hid_device *hid)
{
return 0;
}
#endif
static int zp_probe(struct hid_device *hdev, const struct hid_device_id *id)
{ … }
static const struct hid_device_id zp_devices[] = …;
MODULE_DEVICE_TABLE(hid, zp_devices);
static struct hid_driver zp_driver = …;
module_hid_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;