gpioinfo: mark kernel claimed lines as used
authorRamon Fried <rfried.dev@gmail.com>
Wed, 31 Jul 2019 17:38:14 +0000 (20:38 +0300)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 1 Aug 2019 08:08:25 +0000 (10:08 +0200)
commitc8437f94d3515d32a837f376cecd521eee268836
treeecbeb54fb9af66ee285d593c739f719ca8c9338f
parentcb5991fe4b3b6582b3399ed1e410c52f2c2e985b
gpioinfo: mark kernel claimed lines as used

In case where the GPIOLINE_FLAG_KERNEL flag was set and no consumer
string is provided by the kernel, the used column was still showing
the pin as "unused" Fix that by writing "kernel".

Signed-off-by: Ramon Fried <rfried.dev@gmail.com>
[Bartosz:
  - fixed indentation and alignment
  - tweaked the commit message formatting]
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
tools/gpioinfo.c