Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>

authored by

Wolfram Sang and committed by
Wolfram Sang
58d23305 21500aa8

+1 -3
+1 -3
drivers/i2c/algos/i2c-algo-bit.c
··· 622 622 623 623 static u32 bit_func(struct i2c_adapter *adap) 624 624 { 625 - return I2C_FUNC_I2C | I2C_FUNC_NOSTART | I2C_FUNC_SMBUS_EMUL | 626 - I2C_FUNC_SMBUS_READ_BLOCK_DATA | 627 - I2C_FUNC_SMBUS_BLOCK_PROC_CALL | 625 + return I2C_FUNC_I2C | I2C_FUNC_NOSTART | I2C_FUNC_SMBUS_EMUL_ALL | 628 626 I2C_FUNC_10BIT_ADDR | I2C_FUNC_PROTOCOL_MANGLING; 629 627 } 630 628