clk: fixed-factor: Export __clk_hw_register_fixed_factor()

Make the base registration function for fixed-factor clocks public and
re-implement the various registration functions that are a direct call
to __clk_hw_register_fixed_factor() as macros.

This is similar to how the registration functions of divider, mux and
other clocks are implemented.

Add a new macro clk_hw_register_fixed_factor_pdata() to register
a fixed-factor clock with its parent clock passed as a struct
clk_parent_data.

Reviewed-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Benoît Monin <benoit.monin@bootlin.com>
This commit is contained in:
Benoît Monin 2025-10-20 15:28:56 +02:00
commit 257a34a028
2 changed files with 47 additions and 63 deletions