Commit ca9a002f authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

clk: renesas: rcar-gen2: Change multipliers and dividers to u8

All multipliers and dividers are small.
Storing them in u8 instead of unsigned int reduces kernel size for a
generic kernel by ca. 0.5 KiB.
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: default avatarNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://lore.kernel.org/r/20191206133254.23800-1-geert+renesas@glider.be
parent e42617b8
...@@ -24,10 +24,10 @@ enum rcar_gen2_clk_types { ...@@ -24,10 +24,10 @@ enum rcar_gen2_clk_types {
}; };
struct rcar_gen2_cpg_pll_config { struct rcar_gen2_cpg_pll_config {
unsigned int extal_div; u8 extal_div;
unsigned int pll1_mult; u8 pll1_mult;
unsigned int pll3_mult; u8 pll3_mult;
unsigned int pll0_mult; /* leave as zero if PLL0CR exists */ u8 pll0_mult; /* leave as zero if PLL0CR exists */
}; };
struct clk *rcar_gen2_cpg_clk_register(struct device *dev, struct clk *rcar_gen2_cpg_clk_register(struct device *dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment