Skip to content

Commit b40272e

Browse files
bentissJiri Kosina
authored andcommitted
HID: remove hidinput_input_event handler
All the different transport drivers use now the generic event handling in hid-input. We can remove the handler definitively now. Reviewed-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 2f0cd03 commit b40272e

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

‎drivers/hid/hid-input.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,9 +1263,7 @@ static struct hid_input *hidinput_allocate(struct hid_device *hid)
12631263
}
12641264

12651265
input_set_drvdata(input_dev, hid);
1266-
if (hid->ll_driver->hidinput_input_event)
1267-
input_dev->event = hid->ll_driver->hidinput_input_event;
1268-
else if (hid->ll_driver->request || hid->hid_output_raw_report)
1266+
if (hid->ll_driver->request || hid->hid_output_raw_report)
12691267
input_dev->event = hidinput_input_event;
12701268
input_dev->open = hidinput_open;
12711269
input_dev->close = hidinput_close;

‎include/linux/hid.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,6 @@ struct hid_driver {
675675
* @stop: called on remove
676676
* @open: called by input layer on open
677677
* @close: called by input layer on close
678-
* @hidinput_input_event: event input event (e.g. ff or leds)
679678
* @parse: this method is called only once to parse the device data,
680679
* shouldn't allocate anything to not leak memory
681680
* @request: send report request to device (e.g. feature report)
@@ -693,9 +692,6 @@ struct hid_ll_driver {
693692

694693
int (*power)(struct hid_device *hdev, int level);
695694

696-
int (*hidinput_input_event) (struct input_dev *idev, unsigned int type,
697-
unsigned int code, int value);
698-
699695
int (*parse)(struct hid_device *hdev);
700696

701697
void (*request)(struct hid_device *hdev,

0 commit comments

Comments
 (0)