]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: core: Allow getting ACPI info by index
authorHans de Goede <hdegoede@redhat.com>
Tue, 4 Apr 2017 22:03:32 +0000 (00:03 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 16 Apr 2017 20:01:35 +0000 (22:01 +0200)
commitfd669c42e1488b1a6b05398456c951757ef897fc
tree95d0e7c37848d49fe2cd5ae4d3355b2e38d9865a
parent934778e31a56dfe7dd1b2bbcd6063538c354fb9e
i2c: core: Allow getting ACPI info by index

Modify struct i2c_acpi_lookup and i2c_acpi_fill_info() to allow
using them to get the info from a certain index in the ACPI-resource
list rather then taking the first I2cSerialBus resource.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core.c