summaryrefslogtreecommitdiffstats
path: root/tools/iio/lsiio.c
diff options
context:
space:
mode:
authorHartmut Knaack2015-05-31 14:40:22 +0200
committerJonathan Cameron2015-06-01 09:38:40 +0200
commite06e3d7112f2ec5494d2d934a8641a53885003ee (patch)
tree1f9fe8f625a728d9ab7011bed9d896bdaebdd2b6 /tools/iio/lsiio.c
parenttools:iio:iio_utils: initialize count during declaration (diff)
downloadkernel-qcow2-linux-e06e3d7112f2ec5494d2d934a8641a53885003ee.tar.gz
kernel-qcow2-linux-e06e3d7112f2ec5494d2d934a8641a53885003ee.tar.xz
kernel-qcow2-linux-e06e3d7112f2ec5494d2d934a8641a53885003ee.zip
tools:iio: rework program parameters
In generic_buffer.c: sort program parameters alphabetically and provide usage information In lsiio.c: drop unused parameters Signed-off-by: Hartmut Knaack <knaack.h@gmx.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/iio/lsiio.c')
-rw-r--r--tools/iio/lsiio.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/iio/lsiio.c b/tools/iio/lsiio.c
index b1089adb7d3a..b59ee1733924 100644
--- a/tools/iio/lsiio.c
+++ b/tools/iio/lsiio.c
@@ -164,7 +164,7 @@ int main(int argc, char **argv)
{
int c, err = 0;
- while ((c = getopt(argc, argv, "d:D:v")) != EOF) {
+ while ((c = getopt(argc, argv, "v")) != EOF) {
switch (c) {
case 'v':
verblevel++;
@@ -179,9 +179,7 @@ int main(int argc, char **argv)
if (err || argc > optind) {
fprintf(stderr, "Usage: lsiio [options]...\n"
"List industrial I/O devices\n"
- " -v, --verbose\n"
- " Increase verbosity (may be given multiple times)\n"
- );
+ " -v Increase verbosity (may be given multiple times)\n");
exit(1);
}