diff options
| author | Wolfram Sang <[email protected]> | 2021-01-09 12:43:10 +0000 |
|---|---|---|
| committer | Wolfram Sang <[email protected]> | 2021-01-22 08:59:21 +0000 |
| commit | 58d23305db951feb0e4b597c91bd642d521aea01 (patch) | |
| tree | 0e9850279dd65bade60c288bd2bd30622091a86b /drivers/i2c | |
| parent | i2c: uapi: add macro to describe support for all SMBus transfers (diff) | |
| download | kernel-58d23305db951feb0e4b597c91bd642d521aea01.tar.gz kernel-58d23305db951feb0e4b597c91bd642d521aea01.zip | |
i2c: algo: bit: use new macro to specifiy capabilities
Let's use the new macro for emulating SMBus with RECV_LEN support.
Signed-off-by: Wolfram Sang <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'drivers/i2c')
| -rw-r--r-- | drivers/i2c/algos/i2c-algo-bit.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/algos/i2c-algo-bit.c b/drivers/i2c/algos/i2c-algo-bit.c index 913db013fe90..fc90293afcbf 100644 --- a/drivers/i2c/algos/i2c-algo-bit.c +++ b/drivers/i2c/algos/i2c-algo-bit.c @@ -622,9 +622,7 @@ static int bit_xfer_atomic(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[], static u32 bit_func(struct i2c_adapter *adap) { - return I2C_FUNC_I2C | I2C_FUNC_NOSTART | I2C_FUNC_SMBUS_EMUL | - I2C_FUNC_SMBUS_READ_BLOCK_DATA | - I2C_FUNC_SMBUS_BLOCK_PROC_CALL | + return I2C_FUNC_I2C | I2C_FUNC_NOSTART | I2C_FUNC_SMBUS_EMUL_ALL | I2C_FUNC_10BIT_ADDR | I2C_FUNC_PROTOCOL_MANGLING; } |
