#include <linux/input.h>
#include <linux/slab.h>
#include <linux/hid.h>
#include <linux/module.h>
#include "hid-ids.h"
#ifdef CONFIG_HID_ACRUX_FF
struct axff_device { … };
static int axff_play(struct input_dev *dev, void *data, struct ff_effect *effect)
{ … }
static int axff_init(struct hid_device *hid)
{ … }
#else
static inline int axff_init(struct hid_device *hid)
{
return 0;
}
#endif
static int ax_probe(struct hid_device *hdev, const struct hid_device_id *id)
{ … }
static void ax_remove(struct hid_device *hdev)
{ … }
static const struct hid_device_id ax_devices[] = …;
MODULE_DEVICE_TABLE(hid, ax_devices);
static struct hid_driver ax_driver = …;
module_hid_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;