diff options
author | Dirk Brandewie <dirk.brandewie@gmail.com> | 2011-10-06 11:26:31 -0700 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2011-10-29 11:03:50 +0100 |
commit | 2fa8326b4b1e5fdc889b57b03b1313f3229cb438 (patch) | |
tree | aa76a229f4090ba1dc9e1ad7bb06666eb8ee62d5 /drivers/i2c/busses/i2c-designware-core.c | |
parent | 1d31b58f648c4f754b23fed4d57acc941080e5ee (diff) | |
download | op-kernel-dev-2fa8326b4b1e5fdc889b57b03b1313f3229cb438.zip op-kernel-dev-2fa8326b4b1e5fdc889b57b03b1313f3229cb438.tar.gz |
i2c-designware: move i2c functionality bit field to be adapter specific
The functionality of the adapter depends on the configuration of the
IP block at silicon compile time and is adapter specific.
Signed-off-by: Dirk Brandewie <dirk.brandewie@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-designware-core.c')
-rw-r--r-- | drivers/i2c/busses/i2c-designware-core.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/i2c/busses/i2c-designware-core.c b/drivers/i2c/busses/i2c-designware-core.c index cd52f17..7105511 100644 --- a/drivers/i2c/busses/i2c-designware-core.c +++ b/drivers/i2c/busses/i2c-designware-core.c @@ -457,12 +457,8 @@ done: u32 i2c_dw_func(struct i2c_adapter *adap) { - return I2C_FUNC_I2C | - I2C_FUNC_10BIT_ADDR | - I2C_FUNC_SMBUS_BYTE | - I2C_FUNC_SMBUS_BYTE_DATA | - I2C_FUNC_SMBUS_WORD_DATA | - I2C_FUNC_SMBUS_I2C_BLOCK; + struct dw_i2c_dev *dev = i2c_get_adapdata(adap); + return dev->functionality; } static u32 i2c_dw_read_clear_intrbits(struct dw_i2c_dev *dev) |