gpio: restore missing legacy devicetree direction flag
GPIO_DIR_OUT is deprecated but allowed in devicetree bindings because some in-tree bindings provided it in the past. GPIO_DIR_IN was the former explicit way of representing the default direction. Put it back so symmetry is maintained. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
c25262c829
commit
fe266f9d2c
2 changed files with 2 additions and 0 deletions
|
@ -267,6 +267,7 @@ extern "C" {
|
|||
* @deprecated Replace with `GPIO_INPUT`.
|
||||
*/
|
||||
/* Deprecated in 2.2 release */
|
||||
#undef GPIO_DIR_IN
|
||||
#define GPIO_DIR_IN __DEPRECATED_MACRO GPIO_INPUT
|
||||
|
||||
/** Legacy flag indicating pin is configured as output.
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
*
|
||||
* Following defines are deprecated and shouldn't be used in DTS files.
|
||||
*/
|
||||
#define GPIO_DIR_IN (1 << 8) /* GPIO_INPUT */
|
||||
#define GPIO_DIR_OUT (1 << 9) /* GPIO_OUTPUT */
|
||||
#define GPIO_PUD_PULL_UP GPIO_PULL_UP
|
||||
#define GPIO_PUD_PULL_DOWN GPIO_PULL_DOWN
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue