hw/usb: switch MTP to use new inotify APIs
commit47287c27d0c367a89f7b2851e23a7f8b2d499dd6
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 8 Jun 2018 16:50:55 +0000 (8 17:50 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 26 Feb 2019 15:25:58 +0000 (26 15:25 +0000)
treeebae22f38b5f35dc30e7707ba4dd29c19189ae07
parent888e0359bff48720b96599270ad7992e272b8a19
hw/usb: switch MTP to use new inotify APIs

The internal inotify APIs allow a lot of conditional statements to be
cleared out, and provide a simpler callback for handling events.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
hw/usb/dev-mtp.c
hw/usb/trace-events