device property: Get rid of __PROPERTY_ENTRY_ARRAY_EL*SIZE*()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 22 Nov 2022 13:35:57 +0000 (15:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Nov 2022 18:35:31 +0000 (19:35 +0100)
commit40eb28dc17f87cfac69d7755447039e92ac5fbda
tree951daed045794cbdf5a797a9c0f1e0fd02dfaca9
parent24b3e3dd9c9c742a4dd18e71b6963f9e7ab72911
device property: Get rid of __PROPERTY_ENTRY_ARRAY_EL*SIZE*()

First of all, _ELEMENT_SIZE() repeats existing sizeof_field() macro.
Second, usage of _ARRAY_ELSIZE_LEN() adds unnecessary indirection
to the data layout. It's more understandable when the data structure
is placed explicitly. That said, get rid of those macros by replacing
them with the existing helper and explicit data structure layout.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20221122133600.49897-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/property.h