i2c-tegra: add I2C_FUNC_SMBUS_EMUL
authorMike Rapoport <mike@compulab.co.il>
Tue, 30 Aug 2011 17:46:09 +0000 (11:46 -0600)
committerBen Dooks <ben-linux@fluff.org>
Tue, 6 Sep 2011 23:13:34 +0000 (00:13 +0100)
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-tegra.c

index 126b4f06023131df2f1c761d079cfb77ee5d9310..17ded1d2f11d52e1330205f07c26c2dbdc89bd03 100644 (file)
@@ -531,7 +531,7 @@ static int tegra_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[],
 
 static u32 tegra_i2c_func(struct i2c_adapter *adap)
 {
-       return I2C_FUNC_I2C;
+       return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL;
 }
 
 static const struct i2c_algorithm tegra_i2c_algo = {