linux/drivers/hid/hid-gaff.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  Force feedback support for GreenAsia (Product ID 0x12) based devices
 *
 *  The devices are distributed under various names and the same USB device ID
 *  can be used in many game controllers.
 *
 *  0e8f:0012 "GreenAsia Inc.    USB Joystick     "
 *   - tested with MANTA Warior MM816 and SpeedLink Strike2 SL-6635.
 *
 *  Copyright (c) 2008 Lukasz Lubojanski <[email protected]>
 */

/*
 */

#include <linux/input.h>
#include <linux/slab.h>
#include <linux/hid.h>
#include <linux/module.h>
#include "hid-ids.h"

#ifdef CONFIG_GREENASIA_FF

struct gaff_device {};

static int hid_gaff_play(struct input_dev *dev, void *data,
			 struct ff_effect *effect)
{}

static int gaff_init(struct hid_device *hid)
{}
#else
static inline int gaff_init(struct hid_device *hdev)
{
	return 0;
}
#endif

static int ga_probe(struct hid_device *hdev, const struct hid_device_id *id)
{}

static const struct hid_device_id ga_devices[] =;
MODULE_DEVICE_TABLE(hid, ga_devices);

static struct hid_driver ga_driver =;
module_hid_driver();

MODULE_DESCRIPTION();
MODULE_LICENSE();