mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -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
|
@ -225,7 +225,7 @@ static const VMStateDescription vmstate_axp2xx = {
|
|||
}
|
||||
};
|
||||
|
||||
static void axp2xx_class_init(ObjectClass *oc, void *data)
|
||||
static void axp2xx_class_init(ObjectClass *oc, const void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(oc);
|
||||
I2CSlaveClass *isc = I2C_SLAVE_CLASS(oc);
|
||||
|
@ -247,7 +247,7 @@ static const TypeInfo axp2xx_info = {
|
|||
.abstract = true,
|
||||
};
|
||||
|
||||
static void axp209_class_init(ObjectClass *oc, void *data)
|
||||
static void axp209_class_init(ObjectClass *oc, const void *data)
|
||||
{
|
||||
AXP2xxClass *sc = AXP2XX_CLASS(oc);
|
||||
|
||||
|
@ -260,7 +260,7 @@ static const TypeInfo axp209_info = {
|
|||
.class_init = axp209_class_init
|
||||
};
|
||||
|
||||
static void axp221_class_init(ObjectClass *oc, void *data)
|
||||
static void axp221_class_init(ObjectClass *oc, const void *data)
|
||||
{
|
||||
AXP2xxClass *sc = AXP2XX_CLASS(oc);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue