[PATCH v2 1/7] clk: stm32mp25: define the number of clocks in the driver

Krzysztof Kozlowski krzk at kernel.org
Mon Nov 2 02:22:59 PST 2026


On Fri, Oct 23, 2026 at 06:43:17PM +0200, Gabriel Fernandez wrote:
> The size of the clock provider is given by STM32MP25_LAST_CLK, defined in
> the binding header. This is not part of the binding ABI: it has to be
> updated each time an ID is added, and the number of clocks handled by a
> given driver does not belong to a binding.
> 
> Define the number of clocks in the driver instead, as done for the
> STM32MP21 driver, and drop it from the binding header. Both are done in
> the same patch as the macro has the same name in the two places.
> 
> No functional change, the value is unchanged (344).
> 
> Signed-off-by: Gabriel Fernandez <gabriel.fernandez at foss.st.com>
> ---
>  drivers/clk/stm32/clk-stm32mp25.c            | 3 +++
>  include/dt-bindings/clock/st,stm32mp25-rcc.h | 2 --
>  2 files changed, 3 insertions(+), 2 deletions(-)

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski at oss.qualcomm.com>

Best regards,
Krzysztof




More information about the linux-arm-kernel mailing list