qemu-e2k/hw/char
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
..
cadence_uart.c arm: Clean up includes 2016-01-29 15:07:23 +00:00
debugcon.c x86: Clean up includes 2016-01-29 15:07:22 +00:00
digic-uart.c arm: Clean up includes 2016-01-29 15:07:23 +00:00
escc.c ui: Shorten references into InputEvent 2016-03-05 10:41:55 +01:00
etraxfs_ser.c hw: Clean up includes 2016-01-29 15:07:25 +00:00
exynos4210_uart.c arm: Clean up includes 2016-01-29 15:07:23 +00:00
grlib_apbuart.c sparc: Clean up includes 2016-01-29 15:07:22 +00:00
imx_serial.c arm: Clean up includes 2016-01-29 15:07:23 +00:00
ipoctal232.c hw: Clean up includes 2016-01-29 15:07:25 +00:00
lm32_juart.c lm32: Clean up includes 2016-01-29 15:07:22 +00:00
lm32_uart.c lm32: Clean up includes 2016-01-29 15:07:22 +00:00
Makefile.objs stm32f2xx_USART: Add the stm32f2xx USART Controller 2015-03-11 13:21:05 +00:00
mcf_uart.c hw: Clean up includes 2016-01-29 15:07:25 +00:00
milkymist-uart.c lm32: Clean up includes 2016-01-29 15:07:22 +00:00
omap_uart.c arm devices: Clean up includes 2016-01-29 15:07:25 +00:00
parallel.c x86: Clean up includes 2016-01-29 15:07:22 +00:00
pl011.c arm: Clean up includes 2016-01-29 15:07:23 +00:00
sclpconsole-lm.c s390: Clean up includes 2016-01-29 15:07:22 +00:00
sclpconsole.c s390: Clean up includes 2016-01-29 15:07:22 +00:00
serial-isa.c x86: Clean up includes 2016-01-29 15:07:22 +00:00
serial-pci.c x86: Clean up includes 2016-01-29 15:07:22 +00:00
serial.c x86: Clean up includes 2016-01-29 15:07:22 +00:00
sh_serial.c hw: Clean up includes 2016-01-29 15:07:25 +00:00
spapr_vty.c ppc: Clean up includes 2016-01-29 15:07:22 +00:00
stm32f2xx_usart.c arm devices: Clean up includes 2016-01-29 15:07:25 +00:00
virtio-console.c virtio: Clean up includes 2016-01-29 15:07:23 +00:00
virtio-serial-bus.c virtio: introduce qemu_get/put_virtqueue_element 2016-02-06 20:44:08 +02:00
xen_console.c xen: Clean up includes 2016-01-29 15:07:23 +00:00
xilinx_uartlite.c arm devices: Clean up includes 2016-01-29 15:07:25 +00:00