clk: renesas: div6: Simplify src mask handling
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 1 Apr 2021 13:01:35 +0000 (15:01 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 11 May 2021 07:58:13 +0000 (09:58 +0200)
commit23b04c84e201e82c1929144a2ce1442bd64e77f3
tree90eb10e50609d9986222f7c7670238f0476725a7
parent6c7bc7dbcc4122745a214134749a0b1ab2658c80
clk: renesas: div6: Simplify src mask handling

Simplify the handling of the register bits to select the parent clock,
by storing a bitmask instead of separate shift and width values.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/5f05a5110d222ce5a113e683fe2aa726f4100b73.1617281699.git.geert+renesas@glider.be
drivers/clk/renesas/clk-div6.c