]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: renesas: r7s9210: Distinguish clocks by clock type
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 21 Feb 2025 08:44:47 +0000 (09:44 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 4 Mar 2025 08:04:23 +0000 (09:04 +0100)
commit5288fe0e2e9d2c147e18c5ce4d03d17f34132dde
treeea99daf6c4b51a50bb5f25f75c4185f62ada7a05
parent653395e63d53723f29b8cc1aa6bc4cbb873c7b7b
clk: renesas: r7s9210: Distinguish clocks by clock type

When registering a clock, its type should be devised from the clock's
type member, not from its id member.
Merge the two checks for the main clock, to improve readability.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/7e61ea78e9919148e73867088ccbc3509364952e.1740126560.git.geert+renesas@glider.be
drivers/clk/renesas/r7s9210-cpg-mssr.c