linux/drivers/hid/hid-pl.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  Force feedback support for PantherLord/GreenAsia based devices
 *
 *  The devices are distributed under various names and the same USB device ID
 *  can be used in both adapters and actual game controllers.
 *
 *  0810:0001 "Twin USB Joystick"
 *   - tested with PantherLord USB/PS2 2in1 Adapter
 *   - contains two reports, one for each port (HID_QUIRK_MULTI_INPUT)
 *
 *  0e8f:0003 "GreenAsia Inc.    USB Joystick     "
 *   - tested with König Gaming gamepad
 *
 *  0e8f:0003 "GASIA USB Gamepad"
 *   - another version of the König gamepad
 *
 *  0f30:0111 "Saitek Color Rumble Pad"
 *
 *  Copyright (c) 2007, 2009 Anssi Hannula <[email protected]>
 */

/*
 */


/* #define DEBUG */

#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();