hw/gpio: pca9552: rename I2CSlave member to parent_obj
Use the conventional parent_obj name for the embedded I2CSlave instance. Signed-off-by: Emmanuel Blot <emmanuel.blot@free.fr> Signed-off-by: Glenn Miles <milesg@linux.ibm.com> Link: https://lore.kernel.org/qemu-devel/20260709-catalina-upgrade-v1-3-814575bc076b@free.fr Signed-off-by: Cédric Le Goater <clg@redhat.com>
Emmanuel Blot committed
Jul 9, 2026 at 17:23 UTC
4618d0465a131a3b91a8d5d860cf18191deee8f2
1 file changed
+2
-2
hw/gpio/pca9552.c
+2
-2
@@ -34,7 +34,7 @@ OBJECT_DECLARE_TYPE(PCA955xState, PCA955xClass, PCA955X)
34
35
struct PCA955xState {
36
/*< private >*/
37
- I2CSlave i2c;
37
+ I2CSlave parent_obj;
38
/*< public >*/
39
40
uint8_t len;
@@ -401,7 +401,7 @@ static const VMStateDescription pca9552_vmstate = {
401
VMSTATE_UINT8(pointer, PCA955xState),
402
VMSTATE_UINT8_ARRAY(regs, PCA955xState, PCA955X_NR_REGS),
403
VMSTATE_UINT8_ARRAY(ext_state, PCA955xState, PCA955X_PIN_COUNT_MAX),
404
- VMSTATE_I2C_SLAVE(i2c, PCA955xState),
404
+ VMSTATE_I2C_SLAVE(parent_obj, PCA955xState),
405
VMSTATE_END_OF_LIST()
406
}
407
};