Skip to content

Commit b3d6510

Browse files
committed
Input: evdev - remove ->event() method
Input core favors ->events() (batch) method over ->event() method if the former is defined, so there is no point in defining evdev_event() as it is never called. Remove it. Reviewed-by: Jeff LaBundy <jeff@labundy.com> Reviewed-by: Benjamin Tissoires <bentiss@kernel.org> Link: https://lore.kernel.org/r/20240703213756.3375978-2-dmitry.torokhov@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 1e48ee9 commit b3d6510

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

drivers/input/evdev.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -308,17 +308,6 @@ static void evdev_events(struct input_handle *handle,
308308
rcu_read_unlock();
309309
}
310310

311-
/*
312-
* Pass incoming event to all connected clients.
313-
*/
314-
static void evdev_event(struct input_handle *handle,
315-
unsigned int type, unsigned int code, int value)
316-
{
317-
struct input_value vals[] = { { type, code, value } };
318-
319-
evdev_events(handle, vals, 1);
320-
}
321-
322311
static int evdev_fasync(int fd, struct file *file, int on)
323312
{
324313
struct evdev_client *client = file->private_data;
@@ -1418,7 +1407,6 @@ static const struct input_device_id evdev_ids[] = {
14181407
MODULE_DEVICE_TABLE(input, evdev_ids);
14191408

14201409
static struct input_handler evdev_handler = {
1421-
.event = evdev_event,
14221410
.events = evdev_events,
14231411
.connect = evdev_connect,
14241412
.disconnect = evdev_disconnect,

0 commit comments

Comments
 (0)