Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools: gpio: add bias flags to lsgpio

Add display of the bias flags.

Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>

authored by

Kent Gibson and committed by
Bartosz Golaszewski
3831c051 17f96ee2

+12
+12
tools/gpio/lsgpio.c
··· 49 49 .name = "open-source", 50 50 .mask = GPIOLINE_FLAG_OPEN_SOURCE, 51 51 }, 52 + { 53 + .name = "pull-up", 54 + .mask = GPIOLINE_FLAG_BIAS_PULL_UP, 55 + }, 56 + { 57 + .name = "pull-down", 58 + .mask = GPIOLINE_FLAG_BIAS_PULL_DOWN, 59 + }, 60 + { 61 + .name = "bias-disabled", 62 + .mask = GPIOLINE_FLAG_BIAS_DISABLE, 63 + }, 52 64 }; 53 65 54 66 void print_flags(unsigned long flags)