qemu/hw/input
Eric Blake b5a1b44318 ui: Shorten references into InputEvent
An upcoming patch will alter how simple unions, like InputEvent, are
laid out, which will impact all lines of the form 'evt->u.XXX'
(expanding it to the longer 'evt->u.XXX.data').  For better
legibility in that patch, and less need for line wrapping, it's better
to use a temporary variable to reduce the effect of a layout change to
just the variable initializations, rather than every reference within
an InputEvent.

There was one instance in hid.c:hid_pointer_event() where the code
was referring to evt->u.rel inside the case label where evt->u.abs
is the correct name; thankfully, both members of the union have the
same type, so it happened to work, but it is now cleaner.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1457021813-10704-8-git-send-email-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2016-03-05 10:41:55 +01:00
..
adb.c cuda: port SET_DEVICE_LIST command to new framework 2016-02-17 09:59:30 +11:00
hid.c ui: Shorten references into InputEvent 2016-03-05 10:41:55 +01:00
lm832x.c hw: Clean up includes 2016-01-29 15:07:25 +00:00
Makefile.objs virtio-input: Fix device introspection on non-Linux hosts 2015-10-09 15:25:56 +02:00
milkymist-softusb.c lm32: Clean up includes 2016-01-29 15:07:22 +00:00
pckbd.c hw: Clean up includes 2016-01-29 15:07:25 +00:00
pl050.c arm: Clean up includes 2016-01-29 15:07:23 +00:00
ps2.c ui: Shorten references into InputEvent 2016-03-05 10:41:55 +01:00
pxa2xx_keypad.c arm: Clean up includes 2016-01-29 15:07:23 +00:00
stellaris_input.c arm: Clean up includes 2016-01-29 15:07:23 +00:00
tsc210x.c arm devices: Clean up includes 2016-01-29 15:07:25 +00:00
tsc2005.c arm devices: Clean up includes 2016-01-29 15:07:25 +00:00
virtio-input-hid.c ui: Shorten references into InputEvent 2016-03-05 10:41:55 +01:00
virtio-input-host.c virtio: Clean up includes 2016-01-29 15:07:23 +00:00
virtio-input.c virtio: move allocation to virtqueue_pop/vring_pop 2016-02-06 20:39:07 +02:00
vmmouse.c hw: Clean up includes 2016-01-29 15:07:25 +00:00