Reviewed-by: Glenn Miles <[email protected]> Thanks,
Glenn On Thu, 2026-07-09 at 17:23 +0200, Emmanuel Blot wrote: > When no description is supplied, fall back to the actual QOM type name > (pca9552 / pca9535 / pca9555) via object_get_typename() instead of the > opaque "pca-unspecified" placeholder, matching the PCA9554 model and > giving meaningful device labels in traces. > > Signed-off-by: Emmanuel Blot <[email protected]> > --- > hw/gpio/pca9552.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/gpio/pca9552.c b/hw/gpio/pca9552.c > index da21e56aab..ffeb438d2a 100644 > --- a/hw/gpio/pca9552.c > +++ b/hw/gpio/pca9552.c > @@ -488,7 +488,7 @@ static void pca955x_realize(DeviceState *dev, Error > **errp) > PCA955xState *s = PCA955X(dev); > > if (!s->description) { > - s->description = g_strdup("pca-unspecified"); > + s->description = g_strdup(object_get_typename(OBJECT(dev))); > } > > qdev_init_gpio_out(dev, s->gpio_out, k->pin_count); >
