Re: [PATCH v5 02/14] software node: introduce PROPERTY_ENTRY_ARRAY_XXX_LEN()

2019-10-15 Thread Andy Shevchenko
On Fri, Oct 11, 2019 at 04:07:09PM -0700, Dmitry Torokhov wrote: > Sometimes we want to initialize property entry array from a regular > pointer, when we can't determine length automatically via ARRAY_SIZE. > Let's introduce PROPERTY_ENTRY_ARRAY_XXX_LEN macros that take explicit > "len" argument.

[PATCH v5 02/14] software node: introduce PROPERTY_ENTRY_ARRAY_XXX_LEN()

2019-10-11 Thread Dmitry Torokhov
Sometimes we want to initialize property entry array from a regular pointer, when we can't determine length automatically via ARRAY_SIZE. Let's introduce PROPERTY_ENTRY_ARRAY_XXX_LEN macros that take explicit "len" argument. Signed-off-by: Dmitry Torokhov --- include/linux/property.h | 45