summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-tegra.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2014-04-14 15:33:40 -0600
committerLinus Walleij <linus.walleij@linaro.org>2014-04-22 16:50:24 +0200
commit6240d691be7dfb8bc6be0ff84ac567ea434401a8 (patch)
tree0663cc23e422cca84d8e423fdecddaab1dbb5dda /drivers/pinctrl/pinctrl-tegra.h
parente53b797474ac61debd6e7c186285c8cc24a3a166 (diff)
downloadop-kernel-dev-6240d691be7dfb8bc6be0ff84ac567ea434401a8.zip
op-kernel-dev-6240d691be7dfb8bc6be0ff84ac567ea434401a8.tar.gz
pinctrl: tegra: remove fsafe from data tables
The fsafe value in the pingroup data tables is only used to implement tegra_pinctrl_disable(). The only reason this function is called is when dynamically switching between pinmux states, i.e. when disabling the old state before programming the new state. It's simpler to have the new target state define the expected value of each pin (and all current DTs do that). This also gives more flexibility, since it allows individual boards explicit control over the "inactive" mux function for each pin, rather than requiring it to be an SoC-specific value. Assuming this, we can get rid of the fsafe value from the driver completely, thus saving some more space in the driver tables. While re-writing the content of tegra124_pingroups[], fix the indentation to use a TAB instead of spaces. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-tegra.h')
-rw-r--r--drivers/pinctrl/pinctrl-tegra.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-tegra.h b/drivers/pinctrl/pinctrl-tegra.h
index 7262ba8..08a2e55 100644
--- a/drivers/pinctrl/pinctrl-tegra.h
+++ b/drivers/pinctrl/pinctrl-tegra.h
@@ -127,7 +127,6 @@ struct tegra_pingroup {
const unsigned *pins;
unsigned npins;
unsigned funcs[4];
- unsigned func_safe;
s16 mux_reg;
s16 pupd_reg;
s16 tri_reg;
OpenPOWER on IntegriCloud