linux/drivers/hid/hid-sjoy.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  Force feedback support for SmartJoy PLUS PS2->USB adapter
 *
 *  Copyright (c) 2009 Jussi Kivilinna <[email protected]>
 *
 *  Based of hid-pl.c and hid-gaff.c
 *   Copyright (c) 2007, 2009 Anssi Hannula <[email protected]>
 *   Copyright (c) 2008 Lukasz Lubojanski <[email protected]>
 */

/*
 */

/* #define DEBUG */

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

#ifdef CONFIG_SMARTJOYPLUS_FF

struct sjoyff_device {};

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

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

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

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

static struct hid_driver sjoy_driver =;
module_hid_driver();

MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_AUTHOR();