linux/drivers/hid/hid-xinmo.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  HID driver for Xin-Mo devices, currently only the Dual Arcade controller.
 *  Fixes the negative axis event values (the devices sends -2) to match the
 *  logical axis minimum of the HID report descriptor (the report announces
 *  -1). It is needed because hid-input discards out of bounds values.
 *  (This module is based on "hid-saitek" and "hid-lg".)
 *
 *  Copyright (c) 2013 Olivier Scherler
 */

/*
 */

#include <linux/device.h>
#include <linux/hid.h>
#include <linux/module.h>
#include <linux/kernel.h>

#include "hid-ids.h"

/*
 * Fix negative events that are out of bounds.
 */
static int xinmo_event(struct hid_device *hdev, struct hid_field *field,
		struct hid_usage *usage, __s32 value)
{}

static const struct hid_device_id xinmo_devices[] =;

MODULE_DEVICE_TABLE(hid, xinmo_devices);

static struct hid_driver xinmo_driver =;

module_hid_driver();
MODULE_DESCRIPTION();
MODULE_LICENSE();