diff options
author | Andy Shevchenko <[email protected]> | 2022-11-22 15:35:57 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-11-23 19:35:31 +0100 |
commit | 40eb28dc17f87cfac69d7755447039e92ac5fbda (patch) | |
tree | 951daed045794cbdf5a797a9c0f1e0fd02dfaca9 /lib/mpi/mpi-mod.c | |
parent | 24b3e3dd9c9c742a4dd18e71b6963f9e7ab72911 (diff) |
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 <[email protected]>
Acked-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions