]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
adc: Move the max111x driver to the adc directory
authorCorey Minyard <cminyard@mvista.com>
Tue, 18 May 2021 20:54:52 +0000 (15:54 -0500)
committerCorey Minyard <cminyard@mvista.com>
Thu, 17 Jun 2021 12:10:32 +0000 (07:10 -0500)
It's an adc, put it where it belongs.

Cc: Andrzej Zaborowski <balrogg@gmail.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-arm@nongnu.org
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
MAINTAINERS
hw/adc/Kconfig
hw/adc/max111x.c [moved from hw/misc/max111x.c with 99% similarity]
hw/adc/meson.build
hw/arm/spitz.c
hw/misc/Kconfig
hw/misc/meson.build
include/hw/adc/max111x.h [moved from include/hw/misc/max111x.h with 100% similarity]

index 455fdadfbb3e225c57fa7fbc52772628c5e1cd26..2fde240be95efbfdfe7e8fd0805952e39b75f29d 100644 (file)
@@ -844,8 +844,8 @@ F: hw/display/tc6393xb.c
 F: hw/gpio/max7310.c
 F: hw/gpio/zaurus.c
 F: hw/misc/mst_fpga.c
-F: hw/misc/max111x.c
-F: include/hw/misc/max111x.h
+F: hw/adc/max111x.c
+F: include/hw/adc/max111x.h
 F: include/hw/arm/pxa.h
 F: include/hw/arm/sharpsl.h
 F: include/hw/display/tc6393xb.h
index 25d2229fb83b25cac03b49ef56e4aa0ae1af1190..a825bd3d343db0405eac5161f0d48f639b2f088b 100644 (file)
@@ -1,2 +1,5 @@
 config STM32F2XX_ADC
     bool
+
+config MAX111X
+    bool
similarity index 99%
rename from hw/misc/max111x.c
rename to hw/adc/max111x.c
index 1b3234a51961ace545eff8a2858d49f314ce6898..e8bf4cccd44529f956be04e20bca8bb58d2c8d96 100644 (file)
@@ -11,7 +11,7 @@
  */
 
 #include "qemu/osdep.h"
-#include "hw/misc/max111x.h"
+#include "hw/adc/max111x.h"
 #include "hw/irq.h"
 #include "migration/vmstate.h"
 #include "qemu/module.h"
index 3d397b4ea102d00c4492d159d0ee02ea0a62c98e..ac4f093fea7cf060a621dc54d725a68727fec337 100644 (file)
@@ -1,3 +1,4 @@
 softmmu_ss.add(when: 'CONFIG_STM32F2XX_ADC', if_true: files('stm32f2xx_adc.c'))
 softmmu_ss.add(when: 'CONFIG_NPCM7XX', if_true: files('npcm7xx_adc.c'))
-softmmu_ss.add(when: 'CONFIG_ZYNQ', if_true: files('zynq-xadc.c'))
\ No newline at end of file
+softmmu_ss.add(when: 'CONFIG_ZYNQ', if_true: files('zynq-xadc.c'))
+softmmu_ss.add(when: 'CONFIG_MAX111X', if_true: files('max111x.c'))
index b45a929cbd9e6f9b1716bb44a66f05d29b86953e..0e2626125ee402ccb7501833412a8123e78ea058 100644 (file)
@@ -30,7 +30,7 @@
 #include "audio/audio.h"
 #include "hw/boards.h"
 #include "hw/sysbus.h"
-#include "hw/misc/max111x.h"
+#include "hw/adc/max111x.h"
 #include "migration/vmstate.h"
 #include "exec/address-spaces.h"
 #include "cpu.h"
index c71ed258204618054f7ca20f37ef4c5d21f90050..996d45aff5ff741b57263f57dd4cd83583d09ffb 100644 (file)
@@ -11,9 +11,6 @@ config ARMSSE_MHU
 config ARMSSE_CPU_PWRCTRL
     bool
 
-config MAX111X
-    bool
-
 config TMP105
     bool
     depends on I2C
index 508fce50c7107da5a5c4f86ae0efc9d89c3fd3e6..b0a8ee8994f2bdf44d88bf0f928b71846fc53331 100644 (file)
@@ -3,7 +3,6 @@ softmmu_ss.add(when: 'CONFIG_EDU', if_true: files('edu.c'))
 softmmu_ss.add(when: 'CONFIG_FW_CFG_DMA', if_true: files('vmcoreinfo.c'))
 softmmu_ss.add(when: 'CONFIG_ISA_DEBUG', if_true: files('debugexit.c'))
 softmmu_ss.add(when: 'CONFIG_ISA_TESTDEV', if_true: files('pc-testdev.c'))
-softmmu_ss.add(when: 'CONFIG_MAX111X', if_true: files('max111x.c'))
 softmmu_ss.add(when: 'CONFIG_PCA9552', if_true: files('pca9552.c'))
 softmmu_ss.add(when: 'CONFIG_PCI_TESTDEV', if_true: files('pci-testdev.c'))
 softmmu_ss.add(when: 'CONFIG_SGA', if_true: files('sga.c'))