Split adb.c into adb.c, adb-mouse.c and adb-kbd.c
commit77cb0f5aafc8e6d0c6d3c339f381c9b7921648e0
authorLaurent Vivier <laurent@vivier.eu>
Wed, 20 Dec 2017 12:14:06 +0000 (20 13:14 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 21 Dec 2017 19:11:28 +0000 (21 20:11 +0100)
treef29172263065caacecd55e739fbdeb9f59ce0c9d
parent23bafd75cd979ad3a21af10273c5a0c5d67d068b
Split adb.c into adb.c, adb-mouse.c and adb-kbd.c

It makes the code clearer to separate the bus implementation
from the devices one.

Replace ADB_DPRINTF() with trace events (and adding new ones in adb-kbd.c).
Some minor changes to make checkpatch.pl happy.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20171220121406.24056-1-laurent@vivier.eu>
hw/input/Makefile.objs
hw/input/adb-internal.h [new file with mode: 0644]
hw/input/adb-kbd.c [copied from hw/input/adb.c with 57% similarity]
hw/input/adb-mouse.c [new file with mode: 0644]
hw/input/adb.c
hw/input/trace-events