input/adb: Only include header where needed
authorBALATON Zoltan <balaton@eik.bme.hu>
Wed, 4 Jan 2023 21:59:36 +0000 (22:59 +0100)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Mon, 6 Feb 2023 11:41:39 +0000 (11:41 +0000)
The header hw/input/adb.h is included by some files that don't need
it. Clean it up and include only where necessary.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-Id: <f46bc751e8426f9d937c9540f2e67d2f0b2cc582.1672868854.git.balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
hw/misc/macio/cuda.c
hw/misc/macio/pmu.c
hw/misc/mos6522.c
include/hw/misc/mac_via.h
include/hw/misc/macio/cuda.h
include/hw/misc/macio/pmu.h
include/hw/misc/mos6522.h

index 853e88bfeddc622ab916c6b01feea8d9bacdfc84..7208b90e1292a567fda4a5f4571c9436cd8ce785 100644 (file)
@@ -27,8 +27,6 @@
 #include "hw/irq.h"
 #include "hw/qdev-properties.h"
 #include "migration/vmstate.h"
-#include "hw/input/adb.h"
-#include "hw/misc/mos6522.h"
 #include "hw/misc/macio/cuda.h"
 #include "qapi/error.h"
 #include "qemu/timer.h"
index 97ef8c771b65579ebc63c4bce15238ce70817f3d..8575bc12647e1f7da138b0aa35bc20d627312921 100644 (file)
 #include "qemu/osdep.h"
 #include "hw/qdev-properties.h"
 #include "migration/vmstate.h"
-#include "hw/input/adb.h"
 #include "hw/irq.h"
-#include "hw/misc/mos6522.h"
-#include "hw/misc/macio/gpio.h"
 #include "hw/misc/macio/pmu.h"
 #include "qapi/error.h"
 #include "qemu/timer.h"
index 0ed631186c356cdd232546fe16c81afac9770454..d6ba47bde97de5bc8b0c69579a49117c23523eea 100644 (file)
@@ -25,7 +25,6 @@
  */
 
 #include "qemu/osdep.h"
-#include "hw/input/adb.h"
 #include "hw/irq.h"
 #include "hw/misc/mos6522.h"
 #include "hw/qdev-properties.h"
index 5fe7a7f5922574587e4c64ed947d766d09c7fad6..422da43bf90a6e950a1172bb7b91be7dd48fbeb7 100644 (file)
@@ -12,6 +12,7 @@
 #include "exec/memory.h"
 #include "hw/sysbus.h"
 #include "hw/misc/mos6522.h"
+#include "hw/input/adb.h"
 #include "qom/object.h"
 
 
index a71deec9680e64d48af901e348e9fe9d1bdd01a7..8a6678c7494d403d420c1ebbb8eda37ed0c7e88a 100644 (file)
@@ -26,6 +26,7 @@
 #ifndef CUDA_H
 #define CUDA_H
 
+#include "hw/input/adb.h"
 #include "hw/misc/mos6522.h"
 #include "qom/object.h"
 
index 00fcdd23f51d4fc3dff69202032c850006c39a37..ba76afb52a812abf1ae08b688e5f64fe566f4edc 100644 (file)
@@ -10,6 +10,7 @@
 #ifndef PMU_H
 #define PMU_H
 
+#include "hw/input/adb.h"
 #include "hw/misc/mos6522.h"
 #include "hw/misc/macio/gpio.h"
 #include "qom/object.h"
index 05872fffc926ea4150abc593da240cd4a77b4441..fba45668abae32b06b82deb4df404b3f046d81d3 100644 (file)
@@ -27,9 +27,8 @@
 #ifndef MOS6522_H
 #define MOS6522_H
 
-#include "exec/memory.h"
+#include "exec/hwaddr.h"
 #include "hw/sysbus.h"
-#include "hw/input/adb.h"
 #include "qom/object.h"
 
 #define MOS6522_NUM_REGS 16