From 28890f7623cd888ec9913aefab0fee2feb43dc85 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Thu, 17 Dec 2020 15:15:03 +0100 Subject: [PATCH] bindings: cxx: line: reorder bias mapping entries 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 --- bindings/cxx/line.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/cxx/line.cpp b/bindings/cxx/line.cpp index df75c8c..bf4a3eb 100644 --- a/bindings/cxx/line.cpp +++ b/bindings/cxx/line.cpp @@ -20,10 +20,10 @@ const ::std::map drive_mapping = { }; const ::std::map 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 */ -- 2.30.2