summaryrefslogtreecommitdiffstats
path: root/include/linux/fwnode.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-04-03 16:05:11 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-04-03 23:23:51 +0200
commit16ba08d5c9ec44f89ec03c67ecf7a9c5e2d204fd (patch)
tree7a269ca24db329c53ada5e30fabc872d68c67164 /include/linux/fwnode.h
parent97badf873ab60e841243b66133ff9eff2a46ef29 (diff)
downloadop-kernel-dev-16ba08d5c9ec44f89ec03c67ecf7a9c5e2d204fd.zip
op-kernel-dev-16ba08d5c9ec44f89ec03c67ecf7a9c5e2d204fd.tar.gz
device property: Introduce firmware node type for platform data
Introduce data structures and code allowing "built-in" properties to be associated with devices in such a way that they will be used by the device_property_* API if no proper firmware node (neither DT nor ACPI) is present for the given device. Each property is to be represented by a property_entry structure. An array of property_entry structures (terminated with a null entry) can be pointed to by the properties field of struct property_set that can be added as a firmware node to a struct device using device_add_property_set(). That will cause the device_property_* API to use that property_set as the source of properties if the given device does not have a DT node or an ACPI companion device object associated with it. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Tested-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/fwnode.h')
-rw-r--r--include/linux/fwnode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fwnode.h b/include/linux/fwnode.h
index fc30b84..0408545 100644
--- a/include/linux/fwnode.h
+++ b/include/linux/fwnode.h
@@ -16,6 +16,7 @@ enum fwnode_type {
FWNODE_INVALID = 0,
FWNODE_OF,
FWNODE_ACPI,
+ FWNODE_PDATA,
};
struct fwnode_handle {
OpenPOWER on IntegriCloud