[PATCH v5 12/15] pmdomain: renesas: r8a78000: Replace sentinel by explicit ID map size

Marek Vasut marek.vasut at mailbox.org
Thu Nov 19 19:36:14 PST 2026


On 11/18/26 8:45 PM, Geert Uytterhoeven wrote:
> The use of a sentinel in the module ID mapping array will become
> cumbersome when the need arises to find out the actual number of
> elements in the array.  Rework the mapping data structure to fix this,
> also improving naming.  Let mod_id_map_find() return an index, to be
> used for indexing additional mapping target arrays later.
> Add a MOD_ID_MAP() initialization macro for brevity.
> 
> While at it, drop the check for "!map" in mod_id_map_find(), as that
> pointer can never be NULL.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas at glider.be>
Reviewed-by: Marek Vasut <marek.vasut+renesas at mailbox.org>



More information about the linux-arm-kernel mailing list