gpiolib: gpiolib command: show label only for requested pins
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
4fcad5129e
commit
d1e54c4bc2
|
@ -334,7 +334,7 @@ static int do_gpiolib(int argc, char *argv[])
|
|||
3, (dir < 0) ? "unk" : ((dir == GPIOF_DIR_IN) ? "in" : "out"),
|
||||
3, (val < 0) ? "unk" : ((val == 0) ? "lo" : "hi"),
|
||||
9, gi->requested ? "true" : "false",
|
||||
gi->label ? gi->label : "");
|
||||
(gi->requested && gi->label) ? gi->label : "");
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue