|
@@ -154,7 +154,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
|
|
{
|
|
{
|
|
struct input_dev *input = hidinput->input;
|
|
struct input_dev *input = hidinput->input;
|
|
struct hid_device *device = input_get_drvdata(input);
|
|
struct hid_device *device = input_get_drvdata(input);
|
|
- int max = 0, code, ret;
|
|
|
|
|
|
+ int max = 0, code;
|
|
unsigned long *bit = NULL;
|
|
unsigned long *bit = NULL;
|
|
|
|
|
|
field->hidinput = hidinput;
|
|
field->hidinput = hidinput;
|
|
@@ -173,11 +173,6 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
|
|
goto ignore;
|
|
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) {
|
|
if (device->driver->input_mapping) {
|
|
int ret = device->driver->input_mapping(device, hidinput, field,
|
|
int ret = device->driver->input_mapping(device, hidinput, field,
|
|
usage, &bit, &max);
|
|
usage, &bit, &max);
|
|
@@ -590,10 +585,6 @@ void hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct
|
|
if (!usage->type)
|
|
if (!usage->type)
|
|
return;
|
|
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) {
|
|
if (usage->hat_min < usage->hat_max || usage->hat_dir) {
|
|
int hat_dir = usage->hat_dir;
|
|
int hat_dir = usage->hat_dir;
|
|
if (!hat_dir)
|
|
if (!hat_dir)
|