zephyr/drivers/i2c
Marcus Shawcroft ddb6b94bd7 i2c: Implement consistent i2c no msgs behaviour
The I2C drivers handle an empty list of I2C messages inconsistenty.
There are two different behaviours, one set of drivers dectects a
requests to transfer zero messages and return -EINVAL while the other
group simple transfer no data and return success.

Adopt the latter behaviour consistently across all drivers.  Update
the i2c.h API documentation to reflect this behaviour.

Change-Id: I427fc1b0e18ddc04b7b59c294e0240b3d6ca4073
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
2017-02-07 18:32:35 +00:00
..
i2c_atmel_sam3.c i2c: Implement consistent i2c no msgs behaviour 2017-02-07 18:32:35 +00:00
i2c_atmel_sam3.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
i2c_dw_registers.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
i2c_dw.c i2c: Implement consistent i2c no msgs behaviour 2017-02-07 18:32:35 +00:00
i2c_dw.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
i2c_mcux.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
i2c_nrf5.c i2c/nrf5: Remove r/w to POWER register. 2017-02-01 00:35:35 +00:00
i2c_qmsi_ss.c i2c: Implement consistent i2c no msgs behaviour 2017-02-07 18:32:35 +00:00
i2c_qmsi.c i2c: Implement consistent i2c no msgs behaviour 2017-02-07 18:32:35 +00:00
i2c_stm32lx.c license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
i2c_stm32lx.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
Kconfig i2c/nrf5: Implement NRF5 I2C driver. 2017-01-25 09:59:27 +00:00
Makefile i2c/nrf5: Implement NRF5 I2C driver. 2017-01-25 09:59:27 +00:00