[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 01/11] hw/sd/omap_mmc: Do a minimal conversion to QDev
From: |
Peter Maydell |
Subject: |
Re: [PATCH 01/11] hw/sd/omap_mmc: Do a minimal conversion to QDev |
Date: |
Tue, 28 Jan 2025 20:13:55 +0000 |
On Tue, 28 Jan 2025 at 18:51, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> On 1/28/25 02:45, Peter Maydell wrote:
> > +static const TypeInfo omap_mmc_info = {
> > + .name = TYPE_OMAP_MMC,
> > + .parent = TYPE_SYS_BUS_DEVICE,
> > + .instance_size = sizeof(OMAPMMCState),
> > + .instance_init = omap_mmc_initfn,
> > + .class_init = omap_mmc_class_init,
> > +};
> > +
> > +static void omap_mmc_register_types(void)
> > +{
> > + type_register_static(&omap_mmc_info);
> > +}
> > +
> > +type_init(omap_mmc_register_types)
>
> Phil seems to be moving everything to DEFINE_TYPES now.
I looked at that, but it wants an array of TypeInfo,
and this is just one. So I did it this way instead.
-- PMM