diff options
author | Corey Minyard | 2016-10-24 17:42:33 +0200 |
---|---|---|
committer | Peter Maydell | 2016-10-24 17:48:02 +0200 |
commit | cc083d8a25e0a886c3cd4bea0bf57ac4e896fa3f (patch) | |
tree | f19623fb6ecd678d87d0cbd769ba8d979aeace2a /include/hw/boards.h | |
parent | target-arm: Implement new HLT trap for semihosting (diff) | |
download | qemu-cc083d8a25e0a886c3cd4bea0bf57ac4e896fa3f.tar.gz qemu-cc083d8a25e0a886c3cd4bea0bf57ac4e896fa3f.tar.xz qemu-cc083d8a25e0a886c3cd4bea0bf57ac4e896fa3f.zip |
i2c: Add asserts for second smbus i2c_start_transfer()
Some SMBus operations restart the transfer to convert from
write to read mode without an intervening i2c_end_transfer().
The second call cannot fail, so the return code is unchecked,
but this causes Coverity to complain. So add some asserts
and documentation about this.
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/boards.h')
0 files changed, 0 insertions, 0 deletions