]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1163fd4ae3ca0a4241c6106be1e45664e524578e
tree5384f4b983952ae1cc0a03d17724795d3a0a84d1
parent15f00c7d4e1502c4878318d121b652bb7dcc1327
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