of: property: Make it easy to add device links from DT properties
authorSaravana Kannan <saravanak@google.com>
Tue, 5 Nov 2019 06:49:59 +0000 (22:49 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Nov 2019 08:42:04 +0000 (09:42 +0100)
commita436ef4aba1f011fa25f35fe7922d577ecde6c7c
tree56c59cd601cc8351a8a64d68d365bed281a15957
parentba861f8e07bf38c457b98e1abf6ecd9fd8c4ee92
of: property: Make it easy to add device links from DT properties

Add a DEFINE_SIMPLE_PROP macro to make it easy to add support for simple
properties with fixed names that just list phandles and phandle args.

Add a DEFINE_SUFFIX_PROP macro to make it easy to add support for
properties with fixes suffix that just list phandles and phandle args.

Signed-off-by: Saravana Kannan <saravanak@google.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20191105065000.50407-3-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/of/property.c