From: Matt Ranostay Date: Tue, 2 Aug 2016 02:39:51 +0000 (-0700) Subject: tools: iio: lsiio: enumerate processed channels X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6df1dc05e73e5108d623c6a38dd24b30f0163657;p=linux-beck.git tools: iio: lsiio: enumerate processed channels Enumerate the processed channels (e.g. *_input) as well the raw channels. Signed-off-by: Matt Ranostay Signed-off-by: Jonathan Cameron --- 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;