From: Kent Gibson Date: Thu, 30 Apr 2020 00:09:16 +0000 (+0800) Subject: tools: gpio: add bias flags to lsgpio X-Git-Tag: v5.8-rc1~128^2~23^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3831c051dfbf58595085e432acc00ad4efcf54cc;p=thirdparty%2Fkernel%2Flinux.git tools: gpio: add bias flags to lsgpio Add display of the bias flags. Signed-off-by: Kent Gibson Signed-off-by: Bartosz Golaszewski --- diff --git a/tools/gpio/lsgpio.c b/tools/gpio/lsgpio.c index e1430f504c139..8a71ad36f83b1 100644 --- a/tools/gpio/lsgpio.c +++ b/tools/gpio/lsgpio.c @@ -49,6 +49,18 @@ struct gpio_flag flagnames[] = { .name = "open-source", .mask = GPIOLINE_FLAG_OPEN_SOURCE, }, + { + .name = "pull-up", + .mask = GPIOLINE_FLAG_BIAS_PULL_UP, + }, + { + .name = "pull-down", + .mask = GPIOLINE_FLAG_BIAS_PULL_DOWN, + }, + { + .name = "bias-disabled", + .mask = GPIOLINE_FLAG_BIAS_DISABLE, + }, }; void print_flags(unsigned long flags)