]> git.baikalelectronics.ru Git - kernel.git/commit
tools:iio:iio_generic_buffer: fix trigger-less mode
authorGregor Boirie <gregor.boirie@parrot.com>
Wed, 24 Aug 2016 13:28:27 +0000 (15:28 +0200)
committerJonathan Cameron <jic23@kernel.org>
Mon, 29 Aug 2016 17:06:21 +0000 (18:06 +0100)
commit551a5830e62d1b7ec9e1b83ff20089cc6e793782
treeb22366b141f40b8fa9175f7e88b8008c0cf26ed9
parent58e1a0a41a2f86697fd720be1341dc31a0f9478b
tools:iio:iio_generic_buffer: fix trigger-less mode

Passing the trigger-less mode option on the command line causes
iio_generic_buffer to fail searching for an IIO trigger.
Fix this by skipping trigger initialization if trigger-less mode is
requested.

Technically it actually fixes:
28e792787f where the bug was introduced but as the window to the patch
below that changes the context was very small let's mark it with that.

Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com>
Fixes: 436b291b2069f ("iio: generic_buffer: Fix --trigger-num option")
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
tools/iio/iio_generic_buffer.c