On Mon, 6 Jul 2020, at 08:11, Philippe Mathieu-Daudé wrote: > All the callers of aspeed_i2c_get_bus() have a AspeedI2CState and > cast it to a DeviceState with DEVICE(), then aspeed_i2c_get_bus() > cast the DeviceState to an AspeedI2CState with ASPEED_I2C()... > > Simplify aspeed_i2c_get_bus() callers by using AspeedI2CState > argument. > > Reviewed-by: Markus Armbruster <arm...@redhat.com> > Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org> Reviewed-by: Andrew Jeffery <and...@aj.id.au>
- [PATCH v2 0/5] hw/i2c: Rename method names for con... Philippe Mathieu-Daudé
- [PATCH v2 1/5] hw/i2c/aspeed_i2c: Simplify as... Philippe Mathieu-Daudé
- Re: [PATCH v2 1/5] hw/i2c/aspeed_i2c: Sim... Andrew Jeffery
- [PATCH v2 3/5] hw/i2c: Rename i2c_realize_and... Philippe Mathieu-Daudé
- [PATCH v2 2/5] hw/i2c: Rename i2c_try_create_... Philippe Mathieu-Daudé
- [PATCH v2 5/5] hw/i2c: Document the I2C qdev ... Philippe Mathieu-Daudé
- Re: [PATCH v2 5/5] hw/i2c: Document the I... Peter Maydell
- [PATCH v2 4/5] hw/i2c: Rename i2c_create_slav... Philippe Mathieu-Daudé
- Re: [PATCH v2 0/5] hw/i2c: Rename method name... Philippe Mathieu-Daudé
- Re: [PATCH v2 0/5] hw/i2c: Rename method ... Corey Minyard