diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-09-30 08:07:17 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-10-02 18:07:27 -0400 |
commit | 3c4b23dd71ea6f68be9731b68877fbc05f4fb693 (patch) | |
tree | cb8dad0b58e504b7f0af635b015bb6a93ee915a0 /drivers/pinctrl/pinconf-generic.c | |
parent | 89092fb0701d3b4070ade6d0aa04640720f52fbd (diff) |
pinctrl: pinconf-generic: sort pin configuration params alphabetically
Currently, the dt_params array in drivers/pinctrl/pinconf-generic.c
is not sorted in the same order as the enum pin_config_param in
include/linux/pinctrl/pinconf-generic.h.
Sort enum pin_config_param, conf_items, dt_params, alphabetically
for consistency.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinconf-generic.c')
-rw-r--r-- | drivers/pinctrl/pinconf-generic.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/pinctrl/pinconf-generic.c b/drivers/pinctrl/pinconf-generic.c index e63ad9fbd388..a88a55901125 100644 --- a/drivers/pinctrl/pinconf-generic.c +++ b/drivers/pinctrl/pinconf-generic.c | |||
@@ -28,25 +28,25 @@ | |||
28 | 28 | ||
29 | #ifdef CONFIG_DEBUG_FS | 29 | #ifdef CONFIG_DEBUG_FS |
30 | static const struct pin_config_item conf_items[] = { | 30 | static const struct pin_config_item conf_items[] = { |
31 | PCONFDUMP(PIN_CONFIG_BIAS_BUS_HOLD, "input bias bus hold", NULL, false), | ||
31 | PCONFDUMP(PIN_CONFIG_BIAS_DISABLE, "input bias disabled", NULL, false), | 32 | PCONFDUMP(PIN_CONFIG_BIAS_DISABLE, "input bias disabled", NULL, false), |
32 | PCONFDUMP(PIN_CONFIG_BIAS_HIGH_IMPEDANCE, "input bias high impedance", NULL, false), | 33 | PCONFDUMP(PIN_CONFIG_BIAS_HIGH_IMPEDANCE, "input bias high impedance", NULL, false), |
33 | PCONFDUMP(PIN_CONFIG_BIAS_BUS_HOLD, "input bias bus hold", NULL, false), | ||
34 | PCONFDUMP(PIN_CONFIG_BIAS_PULL_UP, "input bias pull up", NULL, false), | ||
35 | PCONFDUMP(PIN_CONFIG_BIAS_PULL_DOWN, "input bias pull down", NULL, false), | 34 | PCONFDUMP(PIN_CONFIG_BIAS_PULL_DOWN, "input bias pull down", NULL, false), |
36 | PCONFDUMP(PIN_CONFIG_BIAS_PULL_PIN_DEFAULT, | 35 | PCONFDUMP(PIN_CONFIG_BIAS_PULL_PIN_DEFAULT, |
37 | "input bias pull to pin specific state", NULL, false), | 36 | "input bias pull to pin specific state", NULL, false), |
38 | PCONFDUMP(PIN_CONFIG_DRIVE_PUSH_PULL, "output drive push pull", NULL, false), | 37 | PCONFDUMP(PIN_CONFIG_BIAS_PULL_UP, "input bias pull up", NULL, false), |
39 | PCONFDUMP(PIN_CONFIG_DRIVE_OPEN_DRAIN, "output drive open drain", NULL, false), | 38 | PCONFDUMP(PIN_CONFIG_DRIVE_OPEN_DRAIN, "output drive open drain", NULL, false), |
40 | PCONFDUMP(PIN_CONFIG_DRIVE_OPEN_SOURCE, "output drive open source", NULL, false), | 39 | PCONFDUMP(PIN_CONFIG_DRIVE_OPEN_SOURCE, "output drive open source", NULL, false), |
40 | PCONFDUMP(PIN_CONFIG_DRIVE_PUSH_PULL, "output drive push pull", NULL, false), | ||
41 | PCONFDUMP(PIN_CONFIG_DRIVE_STRENGTH, "output drive strength", "mA", true), | 41 | PCONFDUMP(PIN_CONFIG_DRIVE_STRENGTH, "output drive strength", "mA", true), |
42 | PCONFDUMP(PIN_CONFIG_INPUT_DEBOUNCE, "input debounce", "usec", true), | ||
42 | PCONFDUMP(PIN_CONFIG_INPUT_ENABLE, "input enabled", NULL, false), | 43 | PCONFDUMP(PIN_CONFIG_INPUT_ENABLE, "input enabled", NULL, false), |
43 | PCONFDUMP(PIN_CONFIG_INPUT_SCHMITT_ENABLE, "input schmitt enabled", NULL, false), | ||
44 | PCONFDUMP(PIN_CONFIG_INPUT_SCHMITT, "input schmitt trigger", NULL, false), | 44 | PCONFDUMP(PIN_CONFIG_INPUT_SCHMITT, "input schmitt trigger", NULL, false), |
45 | PCONFDUMP(PIN_CONFIG_INPUT_DEBOUNCE, "input debounce", "usec", true), | 45 | PCONFDUMP(PIN_CONFIG_INPUT_SCHMITT_ENABLE, "input schmitt enabled", NULL, false), |
46 | PCONFDUMP(PIN_CONFIG_POWER_SOURCE, "pin power source", "selector", true), | ||
47 | PCONFDUMP(PIN_CONFIG_SLEW_RATE, "slew rate", NULL, true), | ||
48 | PCONFDUMP(PIN_CONFIG_LOW_POWER_MODE, "pin low power", "mode", true), | 46 | PCONFDUMP(PIN_CONFIG_LOW_POWER_MODE, "pin low power", "mode", true), |
49 | PCONFDUMP(PIN_CONFIG_OUTPUT, "pin output", "level", true), | 47 | PCONFDUMP(PIN_CONFIG_OUTPUT, "pin output", "level", true), |
48 | PCONFDUMP(PIN_CONFIG_POWER_SOURCE, "pin power source", "selector", true), | ||
49 | PCONFDUMP(PIN_CONFIG_SLEW_RATE, "slew rate", NULL, true), | ||
50 | }; | 50 | }; |
51 | 51 | ||
52 | static void pinconf_generic_dump_one(struct pinctrl_dev *pctldev, | 52 | static void pinconf_generic_dump_one(struct pinctrl_dev *pctldev, |
@@ -150,27 +150,27 @@ EXPORT_SYMBOL_GPL(pinconf_generic_dump_config); | |||
150 | 150 | ||
151 | #ifdef CONFIG_OF | 151 | #ifdef CONFIG_OF |
152 | static const struct pinconf_generic_params dt_params[] = { | 152 | static const struct pinconf_generic_params dt_params[] = { |
153 | { "bias-bus-hold", PIN_CONFIG_BIAS_BUS_HOLD, 0 }, | ||
153 | { "bias-disable", PIN_CONFIG_BIAS_DISABLE, 0 }, | 154 | { "bias-disable", PIN_CONFIG_BIAS_DISABLE, 0 }, |
154 | { "bias-high-impedance", PIN_CONFIG_BIAS_HIGH_IMPEDANCE, 0 }, | 155 | { "bias-high-impedance", PIN_CONFIG_BIAS_HIGH_IMPEDANCE, 0 }, |
155 | { "bias-bus-hold", PIN_CONFIG_BIAS_BUS_HOLD, 0 }, | ||
156 | { "bias-pull-up", PIN_CONFIG_BIAS_PULL_UP, 1 }, | 156 | { "bias-pull-up", PIN_CONFIG_BIAS_PULL_UP, 1 }, |
157 | { "bias-pull-down", PIN_CONFIG_BIAS_PULL_DOWN, 1 }, | ||
158 | { "bias-pull-pin-default", PIN_CONFIG_BIAS_PULL_PIN_DEFAULT, 1 }, | 157 | { "bias-pull-pin-default", PIN_CONFIG_BIAS_PULL_PIN_DEFAULT, 1 }, |
159 | { "drive-push-pull", PIN_CONFIG_DRIVE_PUSH_PULL, 0 }, | 158 | { "bias-pull-down", PIN_CONFIG_BIAS_PULL_DOWN, 1 }, |
160 | { "drive-open-drain", PIN_CONFIG_DRIVE_OPEN_DRAIN, 0 }, | 159 | { "drive-open-drain", PIN_CONFIG_DRIVE_OPEN_DRAIN, 0 }, |
161 | { "drive-open-source", PIN_CONFIG_DRIVE_OPEN_SOURCE, 0 }, | 160 | { "drive-open-source", PIN_CONFIG_DRIVE_OPEN_SOURCE, 0 }, |
161 | { "drive-push-pull", PIN_CONFIG_DRIVE_PUSH_PULL, 0 }, | ||
162 | { "drive-strength", PIN_CONFIG_DRIVE_STRENGTH, 0 }, | 162 | { "drive-strength", PIN_CONFIG_DRIVE_STRENGTH, 0 }, |
163 | { "input-enable", PIN_CONFIG_INPUT_ENABLE, 1 }, | 163 | { "input-debounce", PIN_CONFIG_INPUT_DEBOUNCE, 0 }, |
164 | { "input-disable", PIN_CONFIG_INPUT_ENABLE, 0 }, | 164 | { "input-disable", PIN_CONFIG_INPUT_ENABLE, 0 }, |
165 | { "input-schmitt-enable", PIN_CONFIG_INPUT_SCHMITT_ENABLE, 1 }, | 165 | { "input-enable", PIN_CONFIG_INPUT_ENABLE, 1 }, |
166 | { "input-schmitt-disable", PIN_CONFIG_INPUT_SCHMITT_ENABLE, 0 }, | 166 | { "input-schmitt-disable", PIN_CONFIG_INPUT_SCHMITT_ENABLE, 0 }, |
167 | { "input-debounce", PIN_CONFIG_INPUT_DEBOUNCE, 0 }, | 167 | { "input-schmitt-enable", PIN_CONFIG_INPUT_SCHMITT_ENABLE, 1 }, |
168 | { "power-source", PIN_CONFIG_POWER_SOURCE, 0 }, | ||
169 | { "low-power-enable", PIN_CONFIG_LOW_POWER_MODE, 1 }, | ||
170 | { "low-power-disable", PIN_CONFIG_LOW_POWER_MODE, 0 }, | 168 | { "low-power-disable", PIN_CONFIG_LOW_POWER_MODE, 0 }, |
171 | { "output-low", PIN_CONFIG_OUTPUT, 0, }, | 169 | { "low-power-enable", PIN_CONFIG_LOW_POWER_MODE, 1 }, |
172 | { "output-high", PIN_CONFIG_OUTPUT, 1, }, | 170 | { "output-high", PIN_CONFIG_OUTPUT, 1, }, |
173 | { "slew-rate", PIN_CONFIG_SLEW_RATE, 0}, | 171 | { "output-low", PIN_CONFIG_OUTPUT, 0, }, |
172 | { "power-source", PIN_CONFIG_POWER_SOURCE, 0 }, | ||
173 | { "slew-rate", PIN_CONFIG_SLEW_RATE, 0 }, | ||
174 | }; | 174 | }; |
175 | 175 | ||
176 | /** | 176 | /** |