Skip to content

Commit

Permalink
hw/isa/pc87312: Rename the device type as TYPE_PC87312_SUPERIO
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: David Gibson <david@gibson.dropbear.id.au> (hw/ppc)
Message-Id: <20180308223946.26784-6-f4bug@amsat.org>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
philmd authored and bonzini committed Mar 12, 2018
1 parent a48c6b5 commit 010d2dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hw/isa/pc87312.c
Expand Up @@ -391,7 +391,7 @@ static void pc87312_class_init(ObjectClass *klass, void *data)
}

static const TypeInfo pc87312_type_info = {
.name = TYPE_PC87312,
.name = TYPE_PC87312_SUPERIO,
.parent = TYPE_ISA_DEVICE,
.instance_size = sizeof(PC87312State),
.instance_init = pc87312_initfn,
Expand Down
2 changes: 1 addition & 1 deletion hw/ppc/prep.c
Expand Up @@ -612,7 +612,7 @@ static void ppc_prep_init(MachineState *machine)
isa_bus = ISA_BUS(qdev_get_child_bus(DEVICE(pci), "isa.0"));

/* Super I/O (parallel + serial ports) */
isa = isa_create(isa_bus, TYPE_PC87312);
isa = isa_create(isa_bus, TYPE_PC87312_SUPERIO);
dev = DEVICE(isa);
qdev_prop_set_uint8(dev, "config", 13); /* fdc, ser0, ser1, par0 */
qdev_init_nofail(dev);
Expand Down
4 changes: 2 additions & 2 deletions include/hw/isa/pc87312.h
Expand Up @@ -28,8 +28,8 @@
#include "hw/isa/isa.h"


#define TYPE_PC87312 "pc87312"
#define PC87312(obj) OBJECT_CHECK(PC87312State, (obj), TYPE_PC87312)
#define TYPE_PC87312_SUPERIO "pc87312"
#define PC87312(obj) OBJECT_CHECK(PC87312State, (obj), TYPE_PC87312_SUPERIO)

typedef struct PC87312State {
ISADevice dev;
Expand Down

0 comments on commit 010d2dc

Please sign in to comment.