linux/drivers/hid/hid-maltron.c

// SPDX-License-Identifier: GPL-2.0
/*
 * HID driver for Maltron L90
 *
 * Copyright (c) 1999 Andreas Gal
 * Copyright (c) 2000-2005 Vojtech Pavlik <[email protected]>
 * Copyright (c) 2005 Michael Haboustak <[email protected]> for Concept2, Inc
 * Copyright (c) 2008 Jiri Slaby
 * Copyright (c) 2012 David Dillow <[email protected]>
 * Copyright (c) 2006-2013 Jiri Kosina
 * Copyright (c) 2013 Colin Leitner <[email protected]>
 * Copyright (c) 2014-2016 Frank Praznik <[email protected]>
 * Copyright (c) 2010 Richard Nauber <[email protected]>
 * Copyright (c) 2016 Yuxuan Shui <[email protected]>
 * Copyright (c) 2018 William Whistler <[email protected]>
 */

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

#include "hid-ids.h"

/* The original buggy USB descriptor */
static u8 maltron_rdesc_o[] =;

/* The patched descriptor, allowing media key events to be accepted as valid */
static u8 maltron_rdesc[] =;

static __u8 *maltron_report_fixup(struct hid_device *hdev, __u8 *rdesc,
				  unsigned int *rsize)
{}

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

static struct hid_driver maltron_driver =;
module_hid_driver();

MODULE_DESCRIPTION();
MODULE_LICENSE();