Commit a598d55e authored by Peter Hutterer's avatar Peter Hutterer

touchpad: rename the lid_switch_listener to just listener

Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent aeca8739
......@@ -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;
}
......
......@@ -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;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment