author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | |
Mon, 23 Mar 2015 23:24:16 +0000 (00:24 +0100) | ||
committer | Praneeth Bajjuri <praneeth@ti.com> | |
Tue, 24 Nov 2015 23:19:28 +0000 (17:19 -0600) | ||
commit | c6c89ae300d76b61d0830724cdd6202aaf7955d5 | |
tree | ccafa5f8c401f4dd3ec92dc19aa9928400637a54 | tree | snapshot (tar.xz tar.gz zip) |
parent | f7cfb4905fa16d92b111d7a1dcdc0581bb193317 | commit | diff |
driver core: Implement device property accessors through fwnode ones
Now that the ACPI companions of devices are pointed to by the fwnode
field in struct device, the device_property_*() accessor functions
can be modified to use their fwnode_property_*() counterparts
internally with minimum extra overhead in the IS_ENABLED(CONFIG_OF)
case, so make those changes.
This allows us to get rid of the rather ugly DEV_PROP_READ_ARRAY()
macro among other things.
Change-Id: Ic43e3bc748775c43944cf908ea5818e916a4712c
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Now that the ACPI companions of devices are pointed to by the fwnode
field in struct device, the device_property_*() accessor functions
can be modified to use their fwnode_property_*() counterparts
internally with minimum extra overhead in the IS_ENABLED(CONFIG_OF)
case, so make those changes.
This allows us to get rid of the rather ugly DEV_PROP_READ_ARRAY()
macro among other things.
Change-Id: Ic43e3bc748775c43944cf908ea5818e916a4712c
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/property.c | diff | blob | history |