]> git.ipfire.org Git - thirdparty/linux.git/commit
clk: renesas: cpg-mssr: Simplify pointer math in cpg_rzt2h_mstp_read()
authorCosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Thu, 27 Nov 2025 14:56:53 +0000 (16:56 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 8 Jan 2026 09:01:37 +0000 (10:01 +0100)
commit21c1d66a1672573c1934734570bd3b05a301af9e
tree54f3989ea79860d6bd5c835c3b65e6c6d3c535da
parentebb3acf4d7c95b52265084168b59a565bf972883
clk: renesas: cpg-mssr: Simplify pointer math in cpg_rzt2h_mstp_read()

Private state is available in all places where cpg_rzt2h_mstp_read() is
called, remove the extra pointer math used to find it from clk_hw.

While at it, put these statements on a single line as they do not exceed
the 80 columns limit.

Signed-off-by: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20251127145654.3253992-2-cosmin-gabriel.tanislav.xa@renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/renesas-cpg-mssr.c