Re: [PATCH] clk: at91: sama7g5: Allocate only the needed amount of memory for PLLs

From: Stephen Boyd
Date: Mon Jul 15 2024 - 15:47:40 EST


Quoting Claudiu Beznea (2024-07-14 07:13:15)
> The maximum number of PLL components on SAMA7G5 is 3 (one fractional
> part and 2 dividers). Allocate the needed amount of memory for
> sama7g5_plls 2d array. Previous code used to allocate 7 array entries for
> each PLL. While at it, replace 3 with PLL_COMPID_MAX in the loop which
> parses the sama7g5_plls 2d array.
>
> Signed-off-by: Claudiu Beznea <claudiu.beznea@xxxxxxxxx>
> ---

Might as well add a Fixes tag so we know when it was less efficient and
to help anyone trying to backport this driver.

Acked-by: Stephen Boyd <sboyd@xxxxxxxxxx>