mfd: Add ACPI support
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 16 Sep 2014 11:52:36 +0000 (14:52 +0300)
committerLee Jones <lee.jones@linaro.org>
Fri, 26 Sep 2014 07:24:05 +0000 (08:24 +0100)
commit6ab3430129e258ea31dd214adf1c760dfafde67a
treeff8b82f6039f2d7b2761da82ab5ca5ac37f27114
parent7be180cc7a0c5768a984126d9468afc82dcf93a2
mfd: Add ACPI support

If an MFD device is backed by ACPI namespace, we should allow subdevice
drivers to access their corresponding ACPI companion devices through normal
means (e.g using ACPI_COMPANION()).

This patch adds such support to the MFD core. If the MFD parent device
does not specify any ACPI _HID/_CID for the child device, the child
device will share the parent ACPI companion device. Otherwise the child
device will be assigned with the corresponding ACPI companion, if found
in the namespace below the parent.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Documentation/acpi/enumeration.txt
drivers/mfd/mfd-core.c
include/linux/mfd/core.h