Skip to content

Commit

Permalink
tools: iio: lsiio: enumerate processed channels
Browse files Browse the repository at this point in the history
Enumerate the processed channels (e.g. *_input) as well the raw channels.

Signed-off-by: Matt Ranostay <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
  • Loading branch information
mranostay authored and jic23 committed Aug 15, 2016
1 parent 8c11e16 commit 6df1dc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/iio/lsiio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6df1dc0

Please sign in to comment.