From: Stephen Warren Date: Mon, 14 Apr 2014 21:33:41 +0000 (-0600) Subject: pinctrl: tegra: reduce size of data table fields X-Git-Tag: firefly_0821_release~176^2~3465^2~34^2~52 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0298fc3e1b057bd89ecfa3b00c1f5106d50c8136;p=firefly-linux-kernel-4.4.55.git pinctrl: tegra: reduce size of data table fields The range of npins and function ID values is small enough to fit into a u8. Use this type rather than unsigned to shrink the pinmux data tables. Signed-off-by: Stephen Warren Acked-by: Laxman Dewangan Signed-off-by: Linus Walleij --- diff --git a/drivers/pinctrl/pinctrl-tegra.h b/drivers/pinctrl/pinctrl-tegra.h index 08a2e55d47b5..24c5a91230bb 100644 --- a/drivers/pinctrl/pinctrl-tegra.h +++ b/drivers/pinctrl/pinctrl-tegra.h @@ -125,8 +125,8 @@ struct tegra_function { struct tegra_pingroup { const char *name; const unsigned *pins; - unsigned npins; - unsigned funcs[4]; + u8 npins; + u8 funcs[4]; s16 mux_reg; s16 pupd_reg; s16 tri_reg;