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)
commit417f784379c2b582d96bde2b438dc1ecb0abd7c3
tree95d0e7c37848d49fe2cd5ae4d3355b2e38d9865a
parent97da3854c526d3a6ee05c849c96e48d21527606c
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