OSDN Git Service

i2c: have I2C receive operation return uint8_t
authorCorey Minyard <cminyard@mvista.com>
Wed, 14 Nov 2018 17:50:50 +0000 (11:50 -0600)
committerCorey Minyard <cminyard@mvista.com>
Thu, 28 Feb 2019 03:06:08 +0000 (21:06 -0600)
commit2ac4c5f4d2415116d3f417a32311d437791dcfce
tree5abf8e22939c5c1c030643ffe2fcdfe7bb16344c
parent93198b6cad8af03996373584284a1673ad6000cb
i2c: have I2C receive operation return uint8_t

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 <cminyard@mvista.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
19 files changed:
hw/arm/pxa2xx.c
hw/arm/tosa.c
hw/arm/z2.c
hw/audio/wm8750.c
hw/display/sii9022.c
hw/display/ssd0303.c
hw/gpio/max7310.c
hw/i2c/core.c
hw/i2c/i2c-ddc.c
hw/i2c/smbus_slave.c
hw/input/lm832x.c
hw/misc/pca9552.c
hw/misc/tmp105.c
hw/misc/tmp421.c
hw/nvram/eeprom_at24c.c
hw/timer/ds1338.c
hw/timer/m41t80.c
hw/timer/twl92230.c
include/hw/i2c/i2c.h