tools: iio: iio_generic_buffer: add -A to force-enable all channels
authorEva Rachel Retuya <eraretuya@gmail.com>
Fri, 14 Oct 2016 10:18:39 +0000 (18:18 +0800)
committerJonathan Cameron <jic23@kernel.org>
Sun, 23 Oct 2016 18:33:53 +0000 (19:33 +0100)
commit4e2cf0e21f5c4792a0b21325557974ddbf111d2f
tree5384f4b983952ae1cc0a03d17724795d3a0a84d1
parentb440f1d90ec54fd2586537ea46e958343ad4b151
tools: iio: iio_generic_buffer: add -A to force-enable all channels

If attribute/s is/are already enabled (by default or via scripts or
manual interaction), issuing -a will fail to enable the channels thereby
one has to manually disable the said attribute/s before proceeding with
auto-enabling.

Add a command-line option -A to force-activate all channels regardless
of their current state.

Suggested-by: Alison Schofield <amsfield22@gmail.com>
Signed-off-by: Eva Rachel Retuya <eraretuya@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
tools/iio/iio_generic_buffer.c