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>
Showing
- hw/arm/aspeed.c 29 additions, 29 deletionshw/arm/aspeed.c
- hw/arm/musicpal.c 2 additions, 2 deletionshw/arm/musicpal.c
- hw/arm/nseries.c 4 additions, 4 deletionshw/arm/nseries.c
- hw/arm/pxa2xx.c 3 additions, 2 deletionshw/arm/pxa2xx.c
- hw/arm/realview.c 1 addition, 1 deletionhw/arm/realview.c
- hw/arm/spitz.c 2 additions, 2 deletionshw/arm/spitz.c
- hw/arm/stellaris.c 1 addition, 1 deletionhw/arm/stellaris.c
- hw/arm/tosa.c 1 addition, 1 deletionhw/arm/tosa.c
- hw/arm/versatilepb.c 1 addition, 1 deletionhw/arm/versatilepb.c
- hw/arm/vexpress.c 1 addition, 1 deletionhw/arm/vexpress.c
- hw/arm/z2.c 2 additions, 2 deletionshw/arm/z2.c
- hw/display/sii9022.c 1 addition, 1 deletionhw/display/sii9022.c
- hw/i2c/core.c 3 additions, 3 deletionshw/i2c/core.c
- hw/ppc/e500.c 1 addition, 1 deletionhw/ppc/e500.c
- hw/ppc/sam460ex.c 1 addition, 1 deletionhw/ppc/sam460ex.c
- include/hw/i2c/i2c.h 1 addition, 1 deletioninclude/hw/i2c/i2c.h
Loading
Please register or sign in to comment