projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21500aa
)
i2c: algo: bit: use new macro to specifiy capabilities
author
Wolfram Sang
<wsa+renesas@sang-engineering.com>
Sat, 9 Jan 2021 12:43:10 +0000
(13:43 +0100)
committer
Wolfram Sang
<wsa@kernel.org>
Fri, 22 Jan 2021 08:59:21 +0000
(09:59 +0100)
Let's use the new macro for emulating SMBus with RECV_LEN support.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/algos/i2c-algo-bit.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/algos/i2c-algo-bit.c
b/drivers/i2c/algos/i2c-algo-bit.c
index 913db013fe90111449abe4eff7ccb36f97b2c41c..fc90293afcbf3fc0d8ef0a975278681cf73977e6 100644
(file)
--- 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;
}