pinctrl: tegra: reduce size of data table fields
authorStephen Warren <swarren@nvidia.com>
Mon, 14 Apr 2014 21:33:41 +0000 (15:33 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 22 Apr 2014 14:52:38 +0000 (16:52 +0200)
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 <swarren@nvidia.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-tegra.h

index 08a2e55d47b5a89e85acf58d6eada7bec16075ea..24c5a91230bb5390272511a68a4f3e15a4c47d09 100644 (file)
@@ -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;