From a598d55e3787badb3258025419015717f03df959 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 1 Sep 2017 17:08:17 +1000 Subject: [PATCH] touchpad: rename the lid_switch_listener to just listener Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad.c | 8 ++++---- src/evdev-mt-touchpad.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 80e74efd..58595785 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -1478,7 +1478,7 @@ tp_remove_sendevents(struct tp_dispatch *tp) if (tp->lid_switch.lid_switch) libinput_device_remove_event_listener( - &tp->lid_switch.lid_switch_listener); + &tp->lid_switch.listener); } static void @@ -1898,8 +1898,8 @@ tp_pair_lid_switch(struct evdev_device *touchpad, lid_switch->devname); libinput_device_add_event_listener(&lid_switch->base, - &tp->lid_switch.lid_switch_listener, - tp_lid_switch_event, tp); + &tp->lid_switch.listener, + tp_lid_switch_event, tp); tp->lid_switch.lid_switch = lid_switch; } } @@ -1950,7 +1950,7 @@ tp_interface_device_removed(struct evdev_device *device, if (removed_device == tp->lid_switch.lid_switch) { libinput_device_remove_event_listener( - &tp->lid_switch.lid_switch_listener); + &tp->lid_switch.listener); tp->lid_switch.lid_switch = NULL; } diff --git a/src/evdev-mt-touchpad.h b/src/evdev-mt-touchpad.h index 664514de..4c667eff 100644 --- a/src/evdev-mt-touchpad.h +++ b/src/evdev-mt-touchpad.h @@ -404,7 +404,7 @@ struct tp_dispatch { } quirks; struct { - struct libinput_event_listener lid_switch_listener; + struct libinput_event_listener listener; struct evdev_device *lid_switch; } lid_switch; };