Skip to content

Commit 57b55ee

Browse files
andy-shevLinus Walleij
authored andcommitted
pinctrl: Keep enum pin_config_param ordered by name (part 2)
It seems the ordering is by name. Keep it that way. Here updating the entire list (there were two more options not in order). Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20210510194717.12255-1-andriy.shevchenko@linux.intel.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent d7f4444 commit 57b55ee

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

‎include/linux/pinctrl/pinconf-generic.h‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,28 +81,28 @@ struct pinctrl_map;
8181
* passed in the argument on a custom form, else just use argument 1
8282
* to indicate low power mode, argument 0 turns low power mode off.
8383
* @PIN_CONFIG_MODE_PWM: this will configure the pin for PWM
84+
* @PIN_CONFIG_OUTPUT: this will configure the pin as an output and drive a
85+
* value on the line. Use argument 1 to indicate high level, argument 0 to
86+
* indicate low level. (Please see Documentation/driver-api/pinctl.rst,
87+
* section "GPIO mode pitfalls" for a discussion around this parameter.)
8488
* @PIN_CONFIG_OUTPUT_ENABLE: this will enable the pin's output mode
8589
* without driving a value there. For most platforms this reduces to
8690
* enable the output buffers and then let the pin controller current
8791
* configuration (eg. the currently selected mux function) drive values on
8892
* the line. Use argument 1 to enable output mode, argument 0 to disable
8993
* it.
90-
* @PIN_CONFIG_OUTPUT: this will configure the pin as an output and drive a
91-
* value on the line. Use argument 1 to indicate high level, argument 0 to
92-
* indicate low level. (Please see Documentation/driver-api/pinctl.rst,
93-
* section "GPIO mode pitfalls" for a discussion around this parameter.)
9494
* @PIN_CONFIG_PERSIST_STATE: retain pin state across sleep or controller reset
9595
* @PIN_CONFIG_POWER_SOURCE: if the pin can select between different power
9696
* supplies, the argument to this parameter (on a custom format) tells
9797
* the driver which alternative power source to use.
98-
* @PIN_CONFIG_SLEEP_HARDWARE_STATE: indicate this is sleep related state.
99-
* @PIN_CONFIG_SLEW_RATE: if the pin can select slew rate, the argument to
100-
* this parameter (on a custom format) tells the driver which alternative
101-
* slew rate to use.
10298
* @PIN_CONFIG_SKEW_DELAY: if the pin has programmable skew rate (on inputs)
10399
* or latch delay (on outputs) this parameter (in a custom format)
104100
* specifies the clock skew or latch delay. It typically controls how
105101
* many double inverters are put in front of the line.
102+
* @PIN_CONFIG_SLEEP_HARDWARE_STATE: indicate this is sleep related state.
103+
* @PIN_CONFIG_SLEW_RATE: if the pin can select slew rate, the argument to
104+
* this parameter (on a custom format) tells the driver which alternative
105+
* slew rate to use.
106106
* @PIN_CONFIG_END: this is the last enumerator for pin configurations, if
107107
* you need to pass in custom configurations to the pin controller, use
108108
* PIN_CONFIG_END+1 as the base offset.
@@ -127,13 +127,13 @@ enum pin_config_param {
127127
PIN_CONFIG_INPUT_SCHMITT_ENABLE,
128128
PIN_CONFIG_MODE_LOW_POWER,
129129
PIN_CONFIG_MODE_PWM,
130-
PIN_CONFIG_OUTPUT_ENABLE,
131130
PIN_CONFIG_OUTPUT,
131+
PIN_CONFIG_OUTPUT_ENABLE,
132132
PIN_CONFIG_PERSIST_STATE,
133133
PIN_CONFIG_POWER_SOURCE,
134+
PIN_CONFIG_SKEW_DELAY,
134135
PIN_CONFIG_SLEEP_HARDWARE_STATE,
135136
PIN_CONFIG_SLEW_RATE,
136-
PIN_CONFIG_SKEW_DELAY,
137137
PIN_CONFIG_END = 0x7F,
138138
PIN_CONFIG_MAX = 0xFF,
139139
};

0 commit comments

Comments
 (0)