From: Jean Delvare Date: Wed, 30 May 2012 08:55:34 +0000 (+0200) Subject: i2c-dev: Add support for I2C_M_RECV_LEN X-Git-Tag: v3.5-rc1~38^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=838bfa6049fb84dc66c9c9bbeb3a968ec987fd3d;p=pandora-kernel.git i2c-dev: Add support for I2C_M_RECV_LEN As the bus driver side implementation of I2C_M_RECV_LEN is heavily tied to SMBus, we can't support received length over 32 bytes, but let's at least support that. In practice, the caller will have to setup a buffer large enough to cover the case where received length byte has value 32, so minimum 32 + 1 = 33 bytes, possibly more if there is a fixed number of bytes added for the specific slave (for example a checksum.) Signed-off-by: Jean Delvare Tested-by: Douglas Gilbert --- Reading git-diff-tree failed