Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114442
b: refs/heads/master
c: 3715ade
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby authored and Jiri Kosina committed Oct 14, 2008
1 parent 07e282f commit 2843a5b
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 64 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 980a3da6acdd577ee3ae192e868dc52fe4b7f2e5
refs/heads/master: 3715ade981d524f9bb3b851a1eb81d3604a873bc
2 changes: 1 addition & 1 deletion trunk/drivers/hid/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# Makefile for the HID driver
#
hid-objs := hid-core.o hid-input.o hid-input-quirks.o
hid-objs := hid-core.o hid-input.o

obj-$(CONFIG_HID) += hid.o

Expand Down
49 changes: 0 additions & 49 deletions trunk/drivers/hid/hid-input-quirks.c

This file was deleted.

11 changes: 1 addition & 10 deletions trunk/drivers/hid/hid-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
{
struct input_dev *input = hidinput->input;
struct hid_device *device = input_get_drvdata(input);
int max = 0, code, ret;
int max = 0, code;
unsigned long *bit = NULL;

field->hidinput = hidinput;
Expand All @@ -173,11 +173,6 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
goto ignore;
}

/* handle input mappings for quirky devices */
ret = hidinput_mapping_quirks(usage, hidinput, &bit, &max);
if (ret)
goto mapped;

if (device->driver->input_mapping) {
int ret = device->driver->input_mapping(device, hidinput, field,
usage, &bit, &max);
Expand Down Expand Up @@ -590,10 +585,6 @@ void hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct
if (!usage->type)
return;

/* handle input events for quirky devices */
if (hidinput_event_quirks(hid, field, usage, value))
return;

if (usage->hat_min < usage->hat_max || usage->hat_dir) {
int hat_dir = usage->hat_dir;
if (!hat_dir)
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/linux/hid.h
Original file line number Diff line number Diff line change
Expand Up @@ -617,9 +617,6 @@ extern void hidinput_disconnect(struct hid_device *);
int hid_set_field(struct hid_field *, unsigned, __s32);
int hid_input_report(struct hid_device *, int type, u8 *, int, int);
int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field);
int hidinput_mapping_quirks(struct hid_usage *, struct hid_input *,
unsigned long **, int *);
int hidinput_event_quirks(struct hid_device *, struct hid_field *, struct hid_usage *, __s32);
void hid_output_report(struct hid_report *report, __u8 *data);
struct hid_device *hid_allocate_device(void);
int hid_parse_report(struct hid_device *hid, __u8 *start, unsigned size);
Expand Down

0 comments on commit 2843a5b

Please sign in to comment.