summaryrefslogtreecommitdiff
path: root/tools/iio/lsiio.c
diff options
context:
space:
mode:
authorMatt Ranostay <mranostay@gmail.com>2016-08-02 05:39:51 +0300
committerJonathan Cameron <jic23@kernel.org>2016-08-15 20:33:23 +0300
commit6df1dc05e73e5108d623c6a38dd24b30f0163657 (patch)
treeb864d80da76962a1a37bf0683f9c4da4e6fa5f57 /tools/iio/lsiio.c
parent8c11e16177b16c0aa0c3b08987f316fd89aa1ead (diff)
downloadlinux-6df1dc05e73e5108d623c6a38dd24b30f0163657.tar.xz
tools: iio: lsiio: enumerate processed channels
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>
Diffstat (limited to 'tools/iio/lsiio.c')
-rw-r--r--tools/iio/lsiio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/iio/lsiio.c b/tools/iio/lsiio.c
index 3d650e668252..ab0f5cf16025 100644
--- a/tools/iio/lsiio.c
+++ b/tools/iio/lsiio.c
@@ -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;