aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/i2c.h
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2005-10-07 18:15:59 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-10-28 17:02:10 -0400
commit30dac7469741906436b50f9413dccd446366d371 (patch)
treeb5285192cd8b4274781d2dabd3bf89ceefadba82 /include/linux/i2c.h
parentd3554b4a2fb0e2229eb0d3fa9ece5b2f0b906d3e (diff)
[PATCH] i2c: Drop I2C_SMBUS_I2C_BLOCK_MAX
Drop I2C_SMBUS_I2C_BLOCK_MAX, use I2C_SMBUS_BLOCK_MAX instead. I2C_SMBUS_I2C_BLOCK_MAX has always been defined to the same value as I2C_SMBUS_BLOCK_MAX, and this will never change: setting it to a lower value would make no sense, setting it to a higher value would break i2c_smbus_data compatibility. There is no point in changing i2c_smbus_data to support larger block transactions in SMBus mode, as no SMBus hardware supports more than 32 byte blocks. Thus, for larger transactions, direct I2C transfers are the way to go. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r--include/linux/i2c.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index 74103d0a8cd2..64c13c042f9d 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -448,7 +448,6 @@ struct i2c_msg {
448 * Data for SMBus Messages 448 * Data for SMBus Messages
449 */ 449 */
450#define I2C_SMBUS_BLOCK_MAX 32 /* As specified in SMBus standard */ 450#define I2C_SMBUS_BLOCK_MAX 32 /* As specified in SMBus standard */
451#define I2C_SMBUS_I2C_BLOCK_MAX 32 /* Not specified but we use same structure */
452union i2c_smbus_data { 451union i2c_smbus_data {
453 __u8 byte; 452 __u8 byte;
454 __u16 word; 453 __u16 word;