diff options
Diffstat (limited to 'hw/ide/cf.c')
-rw-r--r-- | hw/ide/cf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/ide/cf.c b/hw/ide/cf.c index 2a425cb..f87cd41 100644 --- a/hw/ide/cf.c +++ b/hw/ide/cf.c @@ -24,15 +24,14 @@ static void ide_cf_realize(IDEDevice *dev, Error **errp) ide_dev_initfn(dev, IDE_CFATA, errp); } -static Property ide_cf_properties[] = { +static const Property ide_cf_properties[] = { DEFINE_IDE_DEV_PROPERTIES(), DEFINE_BLOCK_CHS_PROPERTIES(IDEDrive, dev.conf), DEFINE_PROP_BIOS_CHS_TRANS("bios-chs-trans", IDEDrive, dev.chs_trans, BIOS_ATA_TRANSLATION_AUTO), - DEFINE_PROP_END_OF_LIST(), }; -static void ide_cf_class_init(ObjectClass *klass, void *data) +static void ide_cf_class_init(ObjectClass *klass, const void *data) { DeviceClass *dc = DEVICE_CLASS(klass); IDEDeviceClass *k = IDE_DEVICE_CLASS(klass); |