On 06/11/2026 11:04, Markus Armbruster wrote:

Signed-off-by: Markus Armbruster <[email protected]>
---
  hw/gpio/pca9552.c | 6 +++---
  hw/gpio/pca9554.c | 4 ++--
  2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/hw/gpio/pca9552.c b/hw/gpio/pca9552.c
index 99c4e0c0e2..f97ad6d083 100644
--- a/hw/gpio/pca9552.c
+++ b/hw/gpio/pca9552.c
@@ -23,7 +23,7 @@
  #include "hw/core/irq.h"
  #include "migration/vmstate.h"
  #include "qapi/error.h"
-#include "qapi/qapi-builtin-type-infos.h"
+#include "qapi/qapi-type-infos-machine.h"
  #include "qapi/qapi-visit-machine.h"
  #include "qapi/visitor.h"
  #include "trace.h"
@@ -547,14 +547,14 @@ static void pca955x_pin_init(PCA955xClass *k)
              /* LED variant: expose the LED selector state as led%d. */
              name = g_strdup_printf("led%d", ix);
              object_class_property_add(OBJECT_CLASS(k), name,
-                                      "str", &str_type_info,
+                                      "str", &Pca9552LedState_type_info,
                                        pca955x_get_led, pca955x_set_led,
                                        NULL, NULL);
          } else {
              /* GPIO variant: expose the pin logic level as pin%d. */
              name = g_strdup_printf("pin%d", ix);
              object_class_property_add(OBJECT_CLASS(k), name,
-                                      "str", &str_type_info,
+                                      "str", &GpioPinState_type_info,
                                        pca955x_get_pin, pca955x_set_pin,
                                        NULL, NULL);
          }
diff --git a/hw/gpio/pca9554.c b/hw/gpio/pca9554.c
index 7bbfd5ed5f..e2d481866f 100644
--- a/hw/gpio/pca9554.c
+++ b/hw/gpio/pca9554.c
@@ -17,7 +17,7 @@
  #include "hw/core/irq.h"
  #include "migration/vmstate.h"
  #include "qapi/error.h"
-#include "qapi/qapi-builtin-type-infos.h"
+#include "qapi/qapi-type-infos-machine.h"
  #include "qapi/qapi-visit-machine.h"
  #include "qapi/visitor.h"
  #include "trace.h"
@@ -288,7 +288,7 @@ static void pca9554_pin_init(PCA9554Class *pc)
name = g_strdup_printf("pin%d", pin);
          object_class_property_add(OBJECT_CLASS(pc), name,
-                                  "str", &str_type_info,
+                                  "str", &GpioPinState_type_info,
                                    pca9554_get_pin, pca9554_set_pin,
                                    NULL, NULL);
          g_free(name);

Reviewed-by: Mark Cave-Ayland <[email protected]>


ATB,

Mark.


Reply via email to