linux/drivers/i2c
Ard Biesheuvel 1eace8344c i2c: add param sanity check to i2c_transfer()
The API docs describe i2c_transfer() as taking a pointer to an array
of i2c_msg containing at least 1 entry, but leaves it to the individual
drivers to sanity check the msgs and num parameters. Let's do this in
core code instead.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
[wsa: changed '<= 0' to '< 1']
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2018-04-11 23:33:46 +02:00
..
algos
busses i2c: i801: Restore configuration at shutdown 2018-04-11 23:08:13 +02:00
muxes i2c: mux: pca954x: verify the device id of the pca984x chips 2018-03-06 10:57:59 +01:00
Kconfig
Makefile
i2c-boardinfo.c
i2c-core-acpi.c
i2c-core-base.c i2c: add param sanity check to i2c_transfer() 2018-04-11 23:33:46 +02:00
i2c-core-of.c i2c: of: simplify reading the "reg" property 2018-02-26 20:40:46 +01:00
i2c-core-slave.c
i2c-core-smbus.c i2c: reformat comments around i2c_smbus_xfer_emulated() 2018-02-27 13:54:05 +01:00
i2c-core.h i2c: make i2c_check_addr_validity() static 2018-03-24 14:07:23 +01:00
i2c-dev.c
i2c-mux.c
i2c-slave-eeprom.c
i2c-smbus.c
i2c-stub.c