i2c: ACPI: Pick the first address if device has multiple
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 29 Dec 2014 13:48:48 +0000 (15:48 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 14 Jan 2015 10:56:06 +0000 (11:56 +0100)
commit393cc1ceb96648f842eb81f41f8f56d1eba9b637
treeb06047887d17030b0dd8b541035da56755a22742
parent8a86c3aee0cfec09b35159da9d925157f3e4f2cc
i2c: ACPI: Pick the first address if device has multiple

ACPI specification allows I2C devices with multiple addresses. The current
implementation goes over all addresses and assigns the last one to the
device. This is typically not the primary address of the device.

Instead of doing that we assign the first address to the device and then
let the driver handle rest of the addresses as it wishes.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core.c