tools: iio: lsiio: enumerate processed channels
authorMatt Ranostay <mranostay@gmail.com>
Tue, 2 Aug 2016 02:39:51 +0000 (19:39 -0700)
committerJonathan Cameron <jic23@kernel.org>
Mon, 15 Aug 2016 17:33:23 +0000 (18:33 +0100)
Enumerate the processed channels (e.g. *_input) as well the raw channels.

Signed-off-by: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
tools/iio/lsiio.c

index 3d650e668252f8f195a8e6a14380117d60b329cc..ab0f5cf1602592c7b5e8f9846657d6234208851b 100644 (file)
@@ -51,7 +51,8 @@ static int dump_channels(const char *dev_dir_name)
 
        while (ent = readdir(dp), ent)
                if (check_prefix(ent->d_name, "in_") &&
-                   check_postfix(ent->d_name, "_raw"))
+                  (check_postfix(ent->d_name, "_raw") ||
+                   check_postfix(ent->d_name, "_input")))
                        printf("   %-10s\n", ent->d_name);
 
        return (closedir(dp) == -1) ? -errno : 0;
This page took 0.025359 seconds and 5 git commands to generate.