clk: renesas: rcar-gen3: Make cpg_z_clk.mask u32
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 26 Mar 2021 12:00:55 +0000 (13:00 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 11 May 2021 07:57:06 +0000 (09:57 +0200)
cpg_z_clk.mask contains a mask for a 32-bit register.
Hence its size can be reduced from unsigned long to u32.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20210326120100.1577596-3-geert+renesas@glider.be
drivers/clk/renesas/rcar-gen3-cpg.c

index 5edc85a..e5edf1b 100644 (file)
@@ -50,8 +50,8 @@ struct cpg_z_clk {
        struct clk_hw hw;
        void __iomem *reg;
        void __iomem *kick_reg;
-       unsigned long mask;
        unsigned int fixed_div;
+       u32 mask;
 };
 
 #define to_z_clk(_hw)  container_of(_hw, struct cpg_z_clk, hw)