#define debug(format, arg...) …
#include <linux/input.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/hid.h>
#include "hid-ids.h"
#ifdef CONFIG_PANTHERLORD_FF
struct plff_device { … };
static int hid_plff_play(struct input_dev *dev, void *data,
struct ff_effect *effect)
{ … }
static int plff_init(struct hid_device *hid)
{ … }
#else
static inline int plff_init(struct hid_device *hid)
{
return 0;
}
#endif
static int pl_probe(struct hid_device *hdev, const struct hid_device_id *id)
{ … }
static const struct hid_device_id pl_devices[] = …;
MODULE_DEVICE_TABLE(hid, pl_devices);
static struct hid_driver pl_driver = …;
module_hid_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;