|
@@ -1582,6 +1582,7 @@ static struct hid_input *hidinput_allocate(struct hid_device *hid,
|
|
|
input_dev->dev.parent = &hid->dev;
|
|
|
|
|
|
hidinput->input = input_dev;
|
|
|
+ hidinput->application = application;
|
|
|
list_add_tail(&hidinput->list, &hid->inputs);
|
|
|
|
|
|
INIT_LIST_HEAD(&hidinput->reports);
|
|
@@ -1677,8 +1678,7 @@ static struct hid_input *hidinput_match_application(struct hid_report *report)
|
|
|
struct hid_input *hidinput;
|
|
|
|
|
|
list_for_each_entry(hidinput, &hid->inputs, list) {
|
|
|
- if (hidinput->report &&
|
|
|
- hidinput->report->application == report->application)
|
|
|
+ if (hidinput->application == report->application)
|
|
|
return hidinput;
|
|
|
}
|
|
|
|