projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c11e16
)
tools: iio: lsiio: enumerate processed channels
author
Matt Ranostay
<mranostay@gmail.com>
Tue, 2 Aug 2016 02:39:51 +0000
(19:39 -0700)
committer
Jonathan 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
patch
|
blob
|
blame
|
history
diff --git
a/tools/iio/lsiio.c
b/tools/iio/lsiio.c
index 3d650e668252f8f195a8e6a14380117d60b329cc..ab0f5cf1602592c7b5e8f9846657d6234208851b 100644
(file)
--- 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;