Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://lore.kernel.org/r/20191206133254.23800-1-geert+renesas@glider.be

+4 -4
+4 -4
drivers/clk/renesas/rcar-gen2-cpg.h
··· 24 24 }; 25 25 26 26 struct rcar_gen2_cpg_pll_config { 27 - unsigned int extal_div; 28 - unsigned int pll1_mult; 29 - unsigned int pll3_mult; 30 - unsigned int pll0_mult; /* leave as zero if PLL0CR exists */ 27 + u8 extal_div; 28 + u8 pll1_mult; 29 + u8 pll3_mult; 30 + u8 pll0_mult; /* leave as zero if PLL0CR exists */ 31 31 }; 32 32 33 33 struct clk *rcar_gen2_cpg_clk_register(struct device *dev,