X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=kernel%2Fdrivers%2Fhid%2Fhid-ntrig.c;fp=kernel%2Fdrivers%2Fhid%2Fhid-ntrig.c;h=756d1ef9bd991d9f77df5835f0cb1f44391493ed;hb=e09b41010ba33a20a87472ee821fa407a5b8da36;hp=600f2075512ff1895852212c67a0fbcb9764566c;hpb=f93b97fd65072de626c074dbe099a1fff05ce060;p=kvmfornfv.git diff --git a/kernel/drivers/hid/hid-ntrig.c b/kernel/drivers/hid/hid-ntrig.c index 600f20755..756d1ef9b 100644 --- a/kernel/drivers/hid/hid-ntrig.c +++ b/kernel/drivers/hid/hid-ntrig.c @@ -859,14 +859,14 @@ not_claimed_input: return 1; } -static void ntrig_input_configured(struct hid_device *hid, +static int ntrig_input_configured(struct hid_device *hid, struct hid_input *hidinput) { struct input_dev *input = hidinput->input; if (hidinput->report->maxfield < 1) - return; + return 0; switch (hidinput->report->field[0]->application) { case HID_DG_PEN: @@ -890,6 +890,8 @@ static void ntrig_input_configured(struct hid_device *hid, "N-Trig MultiTouch"; break; } + + return 0; } static int ntrig_probe(struct hid_device *hdev, const struct hid_device_id *id)