i2c / ACPI: add ACPI enumeration support
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 23 Nov 2012 11:23:40 +0000 (12:23 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 23 Nov 2012 11:23:40 +0000 (12:23 +0100)
commit907ddf89d0bb7f57e1e21485900e6564a1ab512a
tree5008892e74b8b805a120b659f701604593b5d3f7
parent863f9f30e6c1e30cb19a0cd17c5cf8879257dfd7
i2c / ACPI: add ACPI enumeration support

ACPI 5 introduced I2cSerialBus resource that makes it possible to enumerate
and configure the I2C slave devices behind the I2C controller. This patch
adds helper functions to support I2C slave enumeration.

An ACPI enabled I2C controller driver only needs to call acpi_i2c_register_devices()
in order to get its slave devices enumerated, created and bound to the
corresponding ACPI handle.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/Kconfig
drivers/acpi/Makefile
drivers/acpi/acpi_i2c.c [new file with mode: 0644]
drivers/i2c/i2c-core.c
include/linux/i2c.h