aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-i801.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2005-10-26 15:25:04 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-10-28 17:02:13 -0400
commitb8095544bc27044a7aa79e1e073b781a249910c3 (patch)
tree2e7f92c1d6765d44531a5d5c830e53fc2f8d760f /drivers/i2c/busses/i2c-i801.c
parent142078f6f09986c2b8f5ebe215ce405438080317 (diff)
[PATCH] i2c: SMBus PEC support rewrite, 1 of 3
Discard I2C_FUNC_SMBUS_*_PEC defines. i2c clients are not supposed to check for PEC support of i2c bus drivers on individual SMBus transactions, and i2c bus drivers are not supposed to advertise them. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-i801.c')
-rw-r--r--drivers/i2c/busses/i2c-i801.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c
index e90b6c4e7da3..b05e045f770c 100644
--- a/drivers/i2c/busses/i2c-i801.c
+++ b/drivers/i2c/busses/i2c-i801.c
@@ -513,8 +513,7 @@ static u32 i801_func(struct i2c_adapter *adapter)
513 return I2C_FUNC_SMBUS_QUICK | I2C_FUNC_SMBUS_BYTE | 513 return I2C_FUNC_SMBUS_QUICK | I2C_FUNC_SMBUS_BYTE |
514 I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WORD_DATA | 514 I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WORD_DATA |
515 I2C_FUNC_SMBUS_BLOCK_DATA | I2C_FUNC_SMBUS_WRITE_I2C_BLOCK 515 I2C_FUNC_SMBUS_BLOCK_DATA | I2C_FUNC_SMBUS_WRITE_I2C_BLOCK
516 | (isich4 ? I2C_FUNC_SMBUS_BLOCK_DATA_PEC | 516 | (isich4 ? I2C_FUNC_SMBUS_HWPEC_CALC : 0);
517 I2C_FUNC_SMBUS_HWPEC_CALC : 0);
518} 517}
519 518
520static struct i2c_algorithm smbus_algorithm = { 519static struct i2c_algorithm smbus_algorithm = {