]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: Implement device property accessors through fwnode ones
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 23 Mar 2015 23:24:16 +0000 (00:24 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 25 Mar 2015 20:00:09 +0000 (21:00 +0100)
commita43d8c1b238dba349c76f4e0fc52ce64244a5342
treea1f0adcf2b1674e581333de2dc5d011d8d5be091
parentcc4508aefc195e0a849fc74570d92dd9f9ed8e66
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.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/property.c