]> git.ipfire.org Git - thirdparty/linux.git/commit
clk: renesas: rzg2l: Move pointers after hw member
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Wed, 14 May 2025 09:04:09 +0000 (12:04 +0300)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 10 Jun 2025 08:20:45 +0000 (10:20 +0200)
commita68ea80f85bbf7b69f69ef9e17e3e1be14d948c8
tree4dcc9544eb46ac8945ff2544f35d94e14b9fac3b
parent2f96afdffad4ef74e3c511207058c41c54a2d014
clk: renesas: rzg2l: Move pointers after hw member

Reorder the pointer members in struct mstp_clock so they appear immediately
after the hw member. This helps avoid potential padding and eliminates the
need for any calculations in the to_mod_clock() macro. As struct clk_hw
currently contains only pointers, placing it first also avoids padding.

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://lore.kernel.org/20250514090415.4098534-3-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/rzg2l-cpg.c