device property: don't bother the drivers with struct property_set
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 29 Mar 2016 11:52:23 +0000 (14:52 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 9 Apr 2016 01:10:50 +0000 (03:10 +0200)
commitf4d05266032346531b9f889e26aa31a0cf2a9822
tree505a1b118968395ab85a39f37ae0e6c0a4d6c342
parent9735a22799b9214d17d3c231fe377fc852f042e9
device property: don't bother the drivers with struct property_set

Since device_add_property_set() now always takes a copy of
the property_set, and also since the fwnode type is always
hard coded to be FWNODE_PDATA, there is no need for the
drivers to deliver the entire struct property_set. The
function can just create the instance of it on its own and
bind the properties from the drivers to it on the spot.

This renames device_add_property_set() to
device_add_properties(). The function now takes struct
property_entry as its parameter instead of struct
property_set.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
12 files changed:
arch/arm/mach-pxa/raumfeld.c
arch/arm/mach-tegra/board-paz00.c
drivers/base/platform.c
drivers/base/property.c
drivers/mfd/intel-lpss-acpi.c
drivers/mfd/intel-lpss-pci.c
drivers/mfd/intel-lpss.c
drivers/mfd/intel-lpss.h
drivers/mfd/mfd-core.c
include/linux/mfd/core.h
include/linux/platform_device.h
include/linux/property.h