Skip to content

Commit e60e063

Browse files
arndbdtor
authored andcommitted
HID: hid-gfrm: avoid warning for input_configured API change
The input_configured callback was recently changed to return an 'int', but the newly added driver uses the old API: drivers/hid/hid-gfrm.c:151:22: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] This changes the driver like the other ones. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 34fc132 ("HID: hid-gfrm: Google Fiber TV Box remote controls") Fixes: b2c68a2 ("HID: hid-input: allow input_configured callback return errors") Acked-by: Petri Gynther <pgynther@google.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 9154301 commit e60e063

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/hid/hid-gfrm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,15 @@ static int gfrm_raw_event(struct hid_device *hdev, struct hid_report *report,
8888
return (ret < 0) ? ret : -1;
8989
}
9090

91-
static void gfrm_input_configured(struct hid_device *hid, struct hid_input *hidinput)
91+
static int gfrm_input_configured(struct hid_device *hid, struct hid_input *hidinput)
9292
{
9393
/*
9494
* Enable software autorepeat with:
9595
* - repeat delay: 400 msec
9696
* - repeat period: 100 msec
9797
*/
9898
input_enable_softrepeat(hidinput->input, 400, 100);
99+
return 0;
99100
}
100101

101102
static int gfrm_probe(struct hid_device *hdev, const struct hid_device_id *id)

0 commit comments

Comments
 (0)