Re: [PATCH v4 15/15] hw/i2c: Introduce i2c_start_recv() and i2c_start_send()

2021-06-16 Thread Richard Henderson
On 6/16/21 2:42 PM, Philippe Mathieu-Daudé wrote: To ease reviewing code using the I2C bus API, introduce the i2c_start_recv() and i2c_start_send() helpers which don't take the confusing 'is_recv' boolean argument. Use these new helpers in the SMBus / AUX bus models. Suggested-by: Richard Hende

[PATCH v4 15/15] hw/i2c: Introduce i2c_start_recv() and i2c_start_send()

2021-06-16 Thread Philippe Mathieu-Daudé
To ease reviewing code using the I2C bus API, introduce the i2c_start_recv() and i2c_start_send() helpers which don't take the confusing 'is_recv' boolean argument. Use these new helpers in the SMBus / AUX bus models. Suggested-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- in