Re: [Qemu-devel] [PATCH v2 02/12] i2c: have I2C receive operation return uint8_t

2018-11-20 Thread Peter Maydell
On 15 November 2018 at 19:24, wrote: > From: Corey Minyard > > It is never supposed to fail and cannot return an error, so just > have it return the proper type. Have it return 0xff on nothing > available, since that's what would happen on a real bus. > > Signed-off-by: Corey Minyard This is

[Qemu-devel] [PATCH v2 02/12] i2c: have I2C receive operation return uint8_t

2018-11-15 Thread minyard
From: Corey Minyard It is never supposed to fail and cannot return an error, so just have it return the proper type. Have it return 0xff on nothing available, since that's what would happen on a real bus. Signed-off-by: Corey Minyard --- hw/arm/pxa2xx.c | 2 +- hw/arm/tosa.c