[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 5/7] hw/sysbus: Make SYSBUS_DEVICE_GPIO_IRQ API internal
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 5/7] hw/sysbus: Make SYSBUS_DEVICE_GPIO_IRQ API internal |
Date: |
Thu, 1 Jun 2023 11:46:23 +0200 |
Since we don't have any use of the SYSBUS_DEVICE_GPIO_IRQ definition
outside of sysbus.c, we can reduce its scope, making it internal to
the API.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
include/hw/sysbus.h | 2 --
hw/core/sysbus.c | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/hw/sysbus.h b/include/hw/sysbus.h
index bc174b2dc3..cdd83c555e 100644
--- a/include/hw/sysbus.h
+++ b/include/hw/sysbus.h
@@ -26,8 +26,6 @@ OBJECT_DECLARE_TYPE(SysBusDevice, SysBusDeviceClass,
* classes overriding it are not required to invoke its implementation.
*/
-#define SYSBUS_DEVICE_GPIO_IRQ "sysbus-irq"
-
struct SysBusDeviceClass {
/*< private >*/
DeviceClass parent_class;
diff --git a/hw/core/sysbus.c b/hw/core/sysbus.c
index a1b4c362c9..f0ba57dcbf 100644
--- a/hw/core/sysbus.c
+++ b/hw/core/sysbus.c
@@ -24,6 +24,8 @@
#include "monitor/monitor.h"
#include "exec/address-spaces.h"
+#define SYSBUS_DEVICE_GPIO_IRQ "sysbus-irq"
+
static void sysbus_dev_print(Monitor *mon, DeviceState *dev, int indent);
static char *sysbus_get_fw_dev_path(DeviceState *dev);
--
2.38.1
- [PATCH v2 0/7] hw/sysbus: Add sysbus_init_irqs and reduce SYSBUS_DEVICE_GPIO_IRQ scope, Philippe Mathieu-Daudé, 2023/06/01
- [PATCH v2 1/7] hw/arm/xlnx-versal: Do not open-code sysbus_connect_irq(), Philippe Mathieu-Daudé, 2023/06/01
- [PATCH v2 2/7] hw/usb/xlnx: Do not open-code sysbus_pass_irq(), Philippe Mathieu-Daudé, 2023/06/01
- [PATCH v2 3/7] hw/sysbus: Introduce sysbus_init_irqs(), Philippe Mathieu-Daudé, 2023/06/01
- [PATCH v2 4/7] hw/usb/hcd-xhci: Use sysbus_init_irqs(), Philippe Mathieu-Daudé, 2023/06/01
- [PATCH v2 5/7] hw/sysbus: Make SYSBUS_DEVICE_GPIO_IRQ API internal,
Philippe Mathieu-Daudé <=
- [PATCH v2 7/7] hw: Simplify using sysbus_init_irqs() [manual], Philippe Mathieu-Daudé, 2023/06/01
- [PATCH v2 6/7] hw: Simplify using sysbus_init_irqs() [automatic], Philippe Mathieu-Daudé, 2023/06/01