mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
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>
This commit is contained in:
parent
93198b6cad
commit
2ac4c5f4d2
19 changed files with 37 additions and 44 deletions
|
@ -737,7 +737,7 @@ static int menelaus_tx(I2CSlave *i2c, uint8_t data)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int menelaus_rx(I2CSlave *i2c)
|
||||
static uint8_t menelaus_rx(I2CSlave *i2c)
|
||||
{
|
||||
MenelausState *s = TWL92230(i2c);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue