OSDN Git Service

i2c: uapi: add macro to describe support for all SMBus transfers
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 9 Jan 2021 12:43:09 +0000 (13:43 +0100)
committerWolfram Sang <wsa@kernel.org>
Fri, 22 Jan 2021 08:59:00 +0000 (09:59 +0100)
commit21500aa84024b3fc541197b2041d80538539740d
tree6010e73fb1b30c4bc933a815506f6e9e43d51259
parent1713d66cae8acdf3d34bafe09598fec9d1fb4793
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>
include/uapi/linux/i2c.h