Re: [PATCH v3] device property: don't bother the drivers with struct property_set

From: Rafael J. Wysocki
Date: Wed Apr 20 2016 - 20:12:26 EST


On Tuesday, March 29, 2016 02:52:23 PM Heikki Krogerus wrote:
> 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@xxxxxxxxxxxxxxx>
> Reviewed-by: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>
> Acked-by: Thierry Reding <treding@xxxxxxxxxx>
> Acked-by: Lee Jones <lee.jones@xxxxxxxxxx>
> Signed-off-by: Heikki Krogerus <heikki.krogerus@xxxxxxxxxxxxxxx>

This patch has been applied to linux-pm.git and is available from its
device-properties branch

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \
device-properties

as commit f4d05266032346531b9f889e26aa31a0cf2a9822

device property: don't bother the drivers with struct property_set

on top of 9735a22799b9214d17d3c231fe377fc852f042e9

Linux 4.6-rc2

Thanks,
Rafael