hw/i2c: Rename i2c_create_slave() as i2c_slave_create_simple()
commit1373b15bb55e46b067f84f70c60d3d03af62fd62
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 5 Jul 2020 22:41:53 +0000 (6 00:41 +0200)
committerCorey Minyard <cminyard@mvista.com>
Thu, 16 Jul 2020 17:30:54 +0000 (16 12:30 -0500)
treec183ff98c64c9a4c46d694128b75b5b9e378296f
parent2616f57231c8e065df77de894a8f018cd1842c95
hw/i2c: Rename i2c_create_slave() as i2c_slave_create_simple()

We use "create_simple" names for functions that allocate, initialize,
configure and realize device objects: pci_create_simple(),
isa_create_simple(), usb_create_simple(). For consistency, rename
i2c_create_slave() as i2c_slave_create_simple(). Since we have
to update all the callers, also let it return a I2CSlave object.

Suggested-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Corey Minyard <cminyard@mvista.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200705224154.16917-5-f4bug@amsat.org>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
16 files changed:
hw/arm/aspeed.c
hw/arm/musicpal.c
hw/arm/nseries.c
hw/arm/pxa2xx.c
hw/arm/realview.c
hw/arm/spitz.c
hw/arm/stellaris.c
hw/arm/tosa.c
hw/arm/versatilepb.c
hw/arm/vexpress.c
hw/arm/z2.c
hw/display/sii9022.c
hw/i2c/core.c
hw/ppc/e500.c
hw/ppc/sam460ex.c
include/hw/i2c/i2c.h