aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-input-quirks.c
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2008-07-31 05:09:37 -0400
committerJiri Kosina <jkosina@suse.cz>2008-10-14 17:50:54 -0400
commit3715ade981d524f9bb3b851a1eb81d3604a873bc (patch)
treea3daee2e0b696ca5ee3255fa76d2f5ba062ed739 /drivers/hid/hid-input-quirks.c
parent980a3da6acdd577ee3ae192e868dc52fe4b7f2e5 (diff)
HID: remove hid-input-quirks
Remove the file since these is no user now. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-input-quirks.c')
-rw-r--r--drivers/hid/hid-input-quirks.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/drivers/hid/hid-input-quirks.c b/drivers/hid/hid-input-quirks.c
deleted file mode 100644
index 980e7456e260..000000000000
--- a/drivers/hid/hid-input-quirks.c
+++ /dev/null
@@ -1,49 +0,0 @@
1/*
2 * HID-input usage mapping quirks
3 *
4 * This is used to handle HID-input mappings for devices violating
5 * HUT 1.12 specification.
6 *
7 * Copyright (c) 2007-2008 Jiri Kosina
8 */
9
10/*
11 * This program is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License as published by the Free
13 * Software Foundation; either version 2 of the License
14 */
15
16#include <linux/input.h>
17#include <linux/hid.h>
18
19static const struct hid_input_blacklist {
20 __u16 idVendor;
21 __u16 idProduct;
22 int (*quirk)(struct hid_usage *, struct hid_input *, unsigned long **,
23 int *);
24} hid_input_blacklist[] = {
25 { 0, 0, NULL }
26};
27
28int hidinput_mapping_quirks(struct hid_usage *usage,
29 struct hid_input *hi, unsigned long **bit, int *max)
30{
31 struct hid_device *device = input_get_drvdata(hi->input);
32 int i = 0;
33
34 while (hid_input_blacklist[i].quirk) {
35 if (hid_input_blacklist[i].idVendor == device->vendor &&
36 hid_input_blacklist[i].idProduct == device->product)
37 return hid_input_blacklist[i].quirk(usage, hi, bit,
38 max);
39 i++;
40 }
41 return 0;
42}
43
44int hidinput_event_quirks(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value)
45{
46 return 0;
47}
48
49