[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qemu-s390x] [RFC PATCH 3/3] qdev: use device_class_set_parent_reali
From: |
David Gibson |
Subject: |
Re: [qemu-s390x] [RFC PATCH 3/3] qdev: use device_class_set_parent_realize/unrealize/reset() |
Date: |
Mon, 15 Jan 2018 12:42:24 +1100 |
User-agent: |
Mutt/1.9.1 (2017-09-22) |
On Sat, Jan 13, 2018 at 11:04:12PM -0300, Philippe Mathieu-Daudé wrote:
1;5002;0c> changes generated using the following Coccinelle patch:
>
> @@
> type DeviceParentClass;
> DeviceParentClass *pc;
> DeviceClass *dc;
> identifier parent_fn;
> identifier child_fn;
> @@
> (
> +device_class_set_parent_realize(dc, child_fn, &pc->parent_fn);
> -pc->parent_fn = dc->realize;
> ...
> -dc->realize = child_fn;
> |
> +device_class_set_parent_unrealize(dc, child_fn, &pc->parent_fn);
> -pc->parent_fn = dc->unrealize;
> ...
> -dc->unrealize = child_fn;
> |
> +device_class_set_parent_reset(dc, child_fn, &pc->parent_fn);
> -pc->parent_fn = dc->reset;
> ...
> -dc->reset = child_fn;
> )
>
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
PPC parts
Acked-by: David Gibson <address@hidden>
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature