diff --git a/include/linux/i2c.h b/include/linux/i2c.h index bc17f7fa7d39c1a008c36fabdf16b49974c51e3e..f4784c0fe9750446fd1a68ac291585ef6f6a7dbd 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -393,6 +393,10 @@ struct i2c_client_address_data { /* The numbers to use to set I2C bus address */ #define ANY_I2C_BUS 0xffff +/* Construct an I2C_CLIENT_END-terminated array of i2c addresses */ +#define I2C_ADDRS(addr, addrs...) \ + ((const unsigned short []){ addr, ## addrs, I2C_CLIENT_END }) + /* ----- functions exported by i2c.o */