aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2015-10-23 05:16:41 -0400
committerWolfram Sang <wsa@the-dreams.de>2015-10-26 10:25:53 -0400
commit98a3be44ffa67b812de7aa7aed9f2331edcfb1a5 (patch)
tree81abee7915f98c72abd4063ee7379c9af09b440a /include/linux/mfd
parent049e6dde7e57f0054fdc49102e7ef4830c698b46 (diff)
mfd: core: redo ACPI matching of the children devices
There is at least one board on the market, i.e. Intel Galileo Gen2, that uses _ADR to distinguish the devices under one actual device. Due to this we have to improve the quirk in the MFD core to handle that board. Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/core.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/mfd/core.h b/include/linux/mfd/core.h
index a76bc100bf97..27dac3ff18b9 100644
--- a/include/linux/mfd/core.h
+++ b/include/linux/mfd/core.h
@@ -18,6 +18,12 @@
18 18
19struct irq_domain; 19struct irq_domain;
20 20
21/* Matches ACPI PNP id, either _HID or _CID, or ACPI _ADR */
22struct mfd_cell_acpi_match {
23 const char *pnpid;
24 const unsigned long long adr;
25};
26
21/* 27/*
22 * This struct describes the MFD part ("cell"). 28 * This struct describes the MFD part ("cell").
23 * After registration the copy of this structure will become the platform data 29 * After registration the copy of this structure will become the platform data
@@ -44,8 +50,8 @@ struct mfd_cell {
44 */ 50 */
45 const char *of_compatible; 51 const char *of_compatible;
46 52
47 /* Matches ACPI PNP id, either _HID or _CID */ 53 /* Matches ACPI */
48 const char *acpi_pnpid; 54 const struct mfd_cell_acpi_match *acpi_match;
49 55
50 /* 56 /*
51 * These resources can be specified relative to the parent device. 57 * These resources can be specified relative to the parent device.