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

i2c: uapi: add macro to describe support for all SMBus transfers

Some I2C bus master drivers which support I2C_M_RECV_LEN do not set
the functionality bits of the now supported SMBus transfers. Add a
convenience macro to make this very simple.

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
21500aa8 1713d66c

+5
+5
include/uapi/linux/i2c.h
··· 129 129 I2C_FUNC_SMBUS_I2C_BLOCK | \ 130 130 I2C_FUNC_SMBUS_PEC) 131 131 132 + /* if I2C_M_RECV_LEN is also supported */ 133 + #define I2C_FUNC_SMBUS_EMUL_ALL (I2C_FUNC_SMBUS_EMUL | \ 134 + I2C_FUNC_SMBUS_READ_BLOCK_DATA | \ 135 + I2C_FUNC_SMBUS_BLOCK_PROC_CALL) 136 + 132 137 /* 133 138 * Data for SMBus Messages 134 139 */