diff options
author | Stephen Warren <swarren@nvidia.com> | 2014-04-14 17:33:41 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-04-22 10:52:38 -0400 |
commit | 0298fc3e1b057bd89ecfa3b00c1f5106d50c8136 (patch) | |
tree | e536e562a1f5f852329d08f51072f234ddbd5adf | |
parent | 6240d691be7dfb8bc6be0ff84ac567ea434401a8 (diff) |
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 <swarren@nvidia.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/pinctrl/pinctrl-tegra.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 { | |||
125 | struct tegra_pingroup { | 125 | struct tegra_pingroup { |
126 | const char *name; | 126 | const char *name; |
127 | const unsigned *pins; | 127 | const unsigned *pins; |
128 | unsigned npins; | 128 | u8 npins; |
129 | unsigned funcs[4]; | 129 | u8 funcs[4]; |
130 | s16 mux_reg; | 130 | s16 mux_reg; |
131 | s16 pupd_reg; | 131 | s16 pupd_reg; |
132 | s16 tri_reg; | 132 | s16 tri_reg; |