tools: gpio: fix debounce_period_us output of lsgpio
authorMilo Spadacini <milo.spadacini@gmail.com>
Mon, 8 May 2023 13:18:48 +0000 (15:18 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 11 May 2023 08:56:24 +0000 (10:56 +0200)
commiteb4b8eca1bad98f4b8574558a74f041f9acb5a54
tree059300baa6433bf6e228ff5319b980868034a056
parentac9a78681b921877518763ba0e89202254349d1b
tools: gpio: fix debounce_period_us output of lsgpio

Fix incorrect output that could occur when more attributes are used and
GPIO_V2_LINE_ATTR_ID_DEBOUNCE is not the first one.

Signed-off-by: Milo Spadacini <milo.spadacini@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
tools/gpio/lsgpio.c