projects
/
qemu-gpiodev
/
libgpiod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
555b0cd
)
bindings: cxx: line: reorder bias mapping entries
author
Bartosz Golaszewski
<bgolaszewski@baylibre.com>
Thu, 17 Dec 2020 14:15:03 +0000
(15:15 +0100)
committer
Bartosz Golaszewski
<bgolaszewski@baylibre.com>
Tue, 19 Jan 2021 09:49:36 +0000
(10:49 +0100)
Reorder the definitions so that they match the order in which they're
declared in the class. This is cosmetic only.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
bindings/cxx/line.cpp
patch
|
blob
|
history
diff --git
a/bindings/cxx/line.cpp
b/bindings/cxx/line.cpp
index df75c8c72b9af545ac080144e6cf763a045461ed..bf4a3ebc773a4269354d94922a3495b4ab0dfb04 100644
(file)
--- a/
bindings/cxx/line.cpp
+++ b/
bindings/cxx/line.cpp
@@
-20,10
+20,10
@@
const ::std::map<int, int> drive_mapping = {
};
const ::std::map<int, int> bias_mapping = {
+ { GPIOD_LINE_BIAS_UNKNOWN, line::BIAS_UNKNOWN, },
+ { GPIOD_LINE_BIAS_DISABLED, line::BIAS_DISABLED, },
{ GPIOD_LINE_BIAS_PULL_UP, line::BIAS_PULL_UP, },
{ GPIOD_LINE_BIAS_PULL_DOWN, line::BIAS_PULL_DOWN, },
- { GPIOD_LINE_BIAS_DISABLED, line::BIAS_DISABLED, },
- { GPIOD_LINE_BIAS_UNKNOWN, line::BIAS_UNKNOWN, },
};
} /* namespace */