|
|
@@ -398,11 +398,12 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
|
|
|
|
|
|
void hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value, struct pt_regs *regs)
|
|
|
{
|
|
|
- struct input_dev *input = &field->hidinput->input;
|
|
|
+ struct input_dev *input;
|
|
|
int *quirks = &hid->quirks;
|
|
|
|
|
|
- if (!input)
|
|
|
+ if (!field->hidinput)
|
|
|
return;
|
|
|
+ input = &field->hidinput->input;
|
|
|
|
|
|
input_regs(input, regs);
|
|
|
|