Mark Cave-Ayland <[email protected]> writes: > On 06/11/2026 11:04, Markus Armbruster wrote: > >> Signed-off-by: Markus Armbruster <[email protected]> >> --- >> include/hw/gpio/pca9554.h | 25 ------------------------- >> hw/gpio/pca9554.c | 24 ++++++++++++++++++++++++ >> 2 files changed, 24 insertions(+), 25 deletions(-) >> diff --git a/include/hw/gpio/pca9554.h b/include/hw/gpio/pca9554.h >> index ac835371aa..1b33a8a752 100644 >> --- a/include/hw/gpio/pca9554.h >> +++ b/include/hw/gpio/pca9554.h >> @@ -8,32 +8,7 @@ >> #ifndef PCA9554_H >> #define PCA9554_H >> -#include "hw/i2c/i2c.h" >> -#include "qom/object.h" >> - >> #define TYPE_PCA9554 "pca9554" >> #define TYPE_PCA9536 "pca9536" >> -typedef struct PCA9554State PCA9554State; >> -DECLARE_INSTANCE_CHECKER(PCA9554State, PCA9554, >> - TYPE_PCA9554) >> - >> -#define PCA9554_NR_REGS 4 >> -#define PCA9554_PIN_COUNT 8 >> -#define PCA9536_PIN_COUNT 4 >> - >> -struct PCA9554State { >> - /*< private >*/ >> - I2CSlave i2c; >> - /*< public >*/ >> - >> - uint8_t len; >> - uint8_t pointer; >> - >> - uint8_t regs[PCA9554_NR_REGS]; >> - qemu_irq gpio_out[PCA9554_PIN_COUNT]; >> - uint8_t ext_state[PCA9554_PIN_COUNT]; >> - char *description; /* For debugging purpose only */ >> - bool hw_dir; /* Honor pin direction */ >> -}; >> #endif > > Is there anything left in pca9554.h at this point?
Same as pca9552.h: just the #define TYPE_... Visible above if you squint :) [...] > Otherwise: > > Reviewed-by: Mark Cave-Ayland <[email protected]> Thank you!
