mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
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>
This commit is contained in:
parent
8c11e16177
commit
6df1dc05e7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user