summaryrefslogtreecommitdiffstats
path: root/include/linux/platform_device.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-03-16 23:49:03 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-03-16 23:49:03 +0100
commitce793486e23e0162a732c605189c8028e0910e86 (patch)
treebc36cffe7005afecc2f9db436dedd107773108b0 /include/linux/platform_device.h
parent06e5801b8cb3fc057d88cb4dc03c0b64b2744cda (diff)
downloadlinux-stable-ce793486e23e0162a732c605189c8028e0910e86.tar.gz
linux-stable-ce793486e23e0162a732c605189c8028e0910e86.tar.bz2
linux-stable-ce793486e23e0162a732c605189c8028e0910e86.zip
driver core / ACPI: Represent ACPI companions using fwnode_handle
Now that we have struct fwnode_handle, we can use that to point to ACPI companions from struct device objects instead of pointing to struct acpi_device directly. There are two benefits from that. First, the somewhat ugly and hackish struct acpi_dev_node can be dropped and, second, the same struct fwnode_handle pointer can be used in the future to point to other (non-ACPI) firmware device node types. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'include/linux/platform_device.h')
-rw-r--r--include/linux/platform_device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h
index ae4882ca4a64..58f1e75ba105 100644
--- a/include/linux/platform_device.h
+++ b/include/linux/platform_device.h
@@ -59,7 +59,7 @@ extern int platform_add_devices(struct platform_device **, int);
struct platform_device_info {
struct device *parent;
- struct acpi_dev_node acpi_node;
+ struct fwnode_handle *fwnode;
const char *name;
int id;