qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 1/6] qdev: device_class_set_props() function


From: Igor Mammedov
Subject: Re: [Qemu-devel] [PATCH v2 1/6] qdev: device_class_set_props() function
Date: Wed, 26 Oct 2016 15:34:29 +0200

On Thu, 20 Oct 2016 15:47:54 -0200
Eduardo Habkost <address@hidden> wrote:

> Replace direct assignment of DeviceClass::props with a
> device_class_set_props() function. The new function will handle
> registration of class properties, later.
> 
> Except for manual conversion of target-ppc/translate_init.c, the
> existing code was converted using the following Coccinelle patch:

Patch doesn't apply to current master anymore with multiple conflicts,
it needs to be regenerated.

>   @@
>   identifier DC;
>   expression PROPS;
>   typedef DeviceClass;
>   @@
>    DeviceClass *DC;
>    ...
>   -DC->props = PROPS;
>   +device_class_set_props(DC, PROPS);
> 
> Signed-off-by: Eduardo Habkost <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]