projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6240d69
)
pinctrl: tegra: reduce size of data table fields
author
Stephen Warren
<swarren@nvidia.com>
Mon, 14 Apr 2014 21:33:41 +0000
(15:33 -0600)
committer
Linus 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pinctrl/pinctrl-tegra.h
b/drivers/pinctrl/pinctrl-tegra.h
index 08a2e55d47b5a89e85acf58d6eada7bec16075ea..24c5a91230bb5390272511a68a4f3e15a4c47d09 100644
(file)
--- 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;
- u
nsigned
npins;
- u
nsigned
funcs[4];
+ u
8
npins;
+ u
8
funcs[4];
s16 mux_reg;
s16 pupd_reg;
s16 tri_reg;