]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 14:02:05 +0000 (16:02 +0200)
commit3ee609408f18c21e5023526801746500fad1b270
treeec253a297ad77ad2acb26de58706d1e2f288334f
parente949f90914826b19d8e22ed9e3f67da561cd03c5
tools: gpio: fix debounce_period_us output of lsgpio

[ Upstream commit eb4b8eca1bad98f4b8574558a74f041f9acb5a54 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/gpio/lsgpio.c