]> www.infradead.org Git - users/hch/block.git/commit
clk: renesas: rzg2l-cpg: Refactor to use priv for clks and base in clock register...
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Mon, 15 Jul 2024 10:35:55 +0000 (11:35 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 30 Jul 2024 08:44:18 +0000 (10:44 +0200)
commit354e5cf4f6ed8c25b3dbdffa14c1afaea21452c5
tree79bb952111315d50607b1cb6090c8f286302e3b2
parent019b5ecc03aef7a596941712391b776143c377d7
clk: renesas: rzg2l-cpg: Refactor to use priv for clks and base in clock register functions

Simplify the `rzg2l-cpg` driver by removing explicit passing of `clks` and
`base` parameters in various clock registration functions. These values
are now accessed directly from the `priv` structure.

While at it, drop masking of parent clocks with 0xffff as nothing is ever
stored in the high bits.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/20240715103555.507767-3-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/rzg2l-cpg.c