mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
qom: Have class_init() take a const data argument
Mechanical change using gsed, then style manually adapted to pass checkpatch.pl script. Suggested-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250424194905.82506-4-philmd@linaro.org>
This commit is contained in:
parent
f1fa787b92
commit
12d1a768bd
1121 changed files with 1774 additions and 1707 deletions
|
@ -264,7 +264,7 @@ static const Property rx62n_properties[] = {
|
|||
DEFINE_PROP_UINT32("xtal-frequency-hz", RX62NState, xtal_freq_hz, 0),
|
||||
};
|
||||
|
||||
static void rx62n_class_init(ObjectClass *klass, void *data)
|
||||
static void rx62n_class_init(ObjectClass *klass, const void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
|
||||
|
@ -272,7 +272,7 @@ static void rx62n_class_init(ObjectClass *klass, void *data)
|
|||
device_class_set_props(dc, rx62n_properties);
|
||||
}
|
||||
|
||||
static void r5f562n7_class_init(ObjectClass *oc, void *data)
|
||||
static void r5f562n7_class_init(ObjectClass *oc, const void *data)
|
||||
{
|
||||
RX62NClass *rxc = RX62N_MCU_CLASS(oc);
|
||||
|
||||
|
@ -281,7 +281,7 @@ static void r5f562n7_class_init(ObjectClass *oc, void *data)
|
|||
rxc->data_flash_size = 32 * KiB;
|
||||
};
|
||||
|
||||
static void r5f562n8_class_init(ObjectClass *oc, void *data)
|
||||
static void r5f562n8_class_init(ObjectClass *oc, const void *data)
|
||||
{
|
||||
RX62NClass *rxc = RX62N_MCU_CLASS(oc);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue