From: Jean Delvare Date: Sat, 13 Oct 2007 21:56:33 +0000 (+0200) Subject: i2c-nforce2: Declare PEC as supported X-Git-Tag: v2.6.24-rc1~1336 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac3f5753ea37d55c85aaf96211c13038fcc69aef;p=platform%2Fkernel%2Flinux-3.10.git i2c-nforce2: Declare PEC as supported The i2c-nforce2 driver has SMBus PEC support, so it should say so. Signed-off-by: Jean Delvare --- diff --git a/drivers/i2c/busses/i2c-nforce2.c b/drivers/i2c/busses/i2c-nforce2.c index c359eabe8..1bf590c 100644 --- a/drivers/i2c/busses/i2c-nforce2.c +++ b/drivers/i2c/busses/i2c-nforce2.c @@ -264,6 +264,7 @@ static u32 nforce2_func(struct i2c_adapter *adapter) /* other functionality might be possible, but is not tested */ return I2C_FUNC_SMBUS_QUICK | I2C_FUNC_SMBUS_BYTE | I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WORD_DATA | + I2C_FUNC_SMBUS_PEC | (((struct nforce2_smbus*)adapter->algo_data)->blockops ? I2C_FUNC_SMBUS_BLOCK_DATA : 0); }