[PATCH] i2c: Drop I2C_SMBUS_I2C_BLOCK_MAX
authorJean Delvare <khali@linux-fr.org>
Fri, 7 Oct 2005 22:15:59 +0000 (00:15 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 28 Oct 2005 21:02:10 +0000 (14:02 -0700)
commit30dac7469741906436b50f9413dccd446366d371
treeb5285192cd8b4274781d2dabd3bf89ceefadba82
parentd3554b4a2fb0e2229eb0d3fa9ece5b2f0b906d3e
[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>
drivers/i2c/chips/eeprom.c
drivers/i2c/i2c-core.c
include/linux/i2c.h