[i2c] [PATCH] i2c-nforce2: Declare PEC as supported

Jean Delvare khali at linux-fr.org
Mon Oct 8 20:27:05 CEST 2007


The i2c-nforce2 driver has SMBus PEC support, so it should say so.

Signed-off-by: Jean Delvare <khali at linux-fr.org>
---
 drivers/i2c/busses/i2c-nforce2.c |    1 +
 1 file changed, 1 insertion(+)

--- linux-2.6.23-rc8.orig/drivers/i2c/busses/i2c-nforce2.c	2007-09-25 09:51:47.000000000 +0200
+++ linux-2.6.23-rc8/drivers/i2c/busses/i2c-nforce2.c	2007-09-25 11:28:39.000000000 +0200
@@ -264,6 +264,7 @@ static u32 nforce2_func(struct i2c_adapt
 	/* 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);
 }


-- 
Jean Delvare



More information about the i2c mailing list