i2c: allow specify device properties in i2c_board_info
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 3 Feb 2017 01:41:28 +0000 (17:41 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 8 Feb 2017 12:34:41 +0000 (13:34 +0100)
commitd3e1b617ae20c459627f501b4bc55b1ea91f662b
tree67d2a5e6dfa455d3f7d4d99451d8963f0cc30466
parent2d479e1fa2d09c5a9518a75a5d21ef2713117946
i2c: allow specify device properties in i2c_board_info

With many drivers converting to using generic device properties, it is
useful to provide array of device properties when instantiating new i2c
client via i2c_board_info and have them automatically added to the device
in question.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/i2c/i2c-core.c
include/linux/i2c.h