Skip to content
Commit 1eace834 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Wolfram Sang
Browse files

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: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
[wsa: changed '<= 0' to '< 1']
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 090cecc6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment