Markus Armbruster 8352a5b8cc sysbus: Tidy up sysbus_init_child_obj()'s @childsize arg, part 1
The callers of sysbus_init_child_obj() commonly pass either &child,
sizeof(child), or pchild, sizeof(*pchild).  Tidy up the few that use
sizeof(child_type) instead, mostly to keep future commits simpler.

Coccinelle script:

    @@
    expression parent, propname, type;
    type T;
    T child;
    @@
    -    sysbus_init_child_obj(parent, propname, &child, sizeof(T), type)
    +    sysbus_init_child_obj(parent, propname, &child, sizeof(child), type)

    @@
    expression parent, propname, type;
    type T;
    T *child;
    @@
    -    sysbus_init_child_obj(parent, propname, child, sizeof(T), type)
    +    sysbus_init_child_obj(parent, propname, child, sizeof(*child), type)

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20200610053247.1583243-42-armbru@redhat.com>
2020-06-15 22:05:28 +02:00
..
2019-08-22 10:04:20 +02:00
2019-08-22 10:04:20 +02:00
2019-08-22 10:04:20 +02:00
2017-03-27 12:14:45 +02:00
2019-12-16 13:04:46 +01:00
2020-01-27 10:49:51 -08:00
2019-08-16 13:31:52 +02:00
2016-01-29 15:07:24 +00:00
2020-02-13 08:31:40 +01:00
2020-05-18 15:43:51 +02:00
2019-08-16 13:31:52 +02:00
2017-04-24 12:32:12 +01:00
2019-08-16 13:31:52 +02:00
2019-08-16 13:31:52 +02:00
2020-05-15 07:08:52 +02:00
2020-05-15 07:08:52 +02:00
2019-08-16 13:31:52 +02:00
2020-06-15 22:05:28 +02:00