The only thing that is still discovered from the backend is the lid switch. Though we could also handle that by having a separate signal that is fired instead of a separate udev client.
This refactors the sibling detection to be event driven. Also changed is that we jump certain device types when searching for a parent, which fixes the discovery of wacom tablets for example.
Closes: #182
4400ad0 linux: Move udev device discovery into a separate class
src/linux/up-backend.c | 254 ++++++++++---------------------------------
src/linux/up-device-supply.c | 167 +++++++++++++---------------
2 files changed, 129 insertions(+), 292 deletions(-)
Upstream: cgit.freedesktop.org