[PATCH] I2C updates: The "bit" and "pcf" i2c algorithms should declare themselves fully I2C capable
Linux Kernel Mailing List <[email protected]>
| Newsgroups | gmane.linux.kernel.commits.2-4 |
|---|---|
| Message-ID | <[email protected]> |
ChangeSet 1.1584, 2005/01/29 13:27:33-02:00, [email protected] [PATCH] I2C updates: The "bit" and "pcf" i2c algorithms should declare themselves fully I2C capable Bottom line: The "bit" and "pcf" i2c algorithms should declare themselves fully I2C capable, but do not. Credits go to Ian Campbell for noticing and proposing patches. This is a backport from Linux 2.6.11-rc1. i2c-algo-bit.c | 4 ++-- i2c-algo-pcf.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff -Nru a/drivers/i2c/i2c-algo-bit.c b/drivers/i2c/i2c-algo-bit.c --- a/drivers/i2c/i2c-algo-bit.c 2005-01-30 15:37:09 -08:00 +++ b/drivers/i2c/i2c-algo-bit.c 2005-01-30 15:37:09 -08:00 @@ -522,8 +522,8 @@ static u32 bit_func(struct i2c_adapter *adap) { - return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_10BIT_ADDR | - I2C_FUNC_PROTOCOL_MANGLING; + return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL | + I2C_FUNC_10BIT_ADDR | I2C_FUNC_PROTOCOL_MANGLING; } diff -Nru a/drivers/i2c/i2c-algo-pcf.c b/drivers/i2c/i2c-algo-pcf.c --- a/drivers/i2c/i2c-algo-pcf.c 2005-01-30 15:37:09 -08:00 +++ b/drivers/i2c/i2c-algo-pcf.c 2005-01-30 15:37:09 -08:00 @@ -435,8 +435,8 @@ static u32 pcf_func(struct i2c_adapter *adap) { - return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_10BIT_ADDR | - I2C_FUNC_PROTOCOL_MANGLING; + return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL | + I2C_FUNC_10BIT_ADDR | I2C_FUNC_PROTOCOL_MANGLING; } /* -----exported algorithm data: ------------------------------------- */