<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/tools/iio/iio_generic_buffer.c, branch linux-4.16.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-4.16.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-4.16.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2016-10-23T18:34:10+00:00</updated>
<entry>
<title>tools: iio: iio_generic_buffer: drop unneeded parentheses</title>
<updated>2016-10-23T18:34:10+00:00</updated>
<author>
<name>Eva Rachel Retuya</name>
<email>eraretuya@gmail.com</email>
</author>
<published>2016-10-20T09:19:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=7c5fe4112421aaef4a9ee35de8d21c1718855fc3'/>
<id>urn:sha1:7c5fe4112421aaef4a9ee35de8d21c1718855fc3</id>
<content type='text'>
Remove extra parentheses introduced in commit &lt;73e176a tools: iio:
iio_generic_buffer: add -A to force-enable all channels&gt;.

Suggested-by: Peter Meerwald-Stadler &lt;pmeerw@pmeerw.net&gt;
Signed-off-by: Eva Rachel Retuya &lt;eraretuya@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>tools: iio: iio_generic_buffer: rename and change type of force variable</title>
<updated>2016-10-23T18:34:10+00:00</updated>
<author>
<name>Eva Rachel Retuya</name>
<email>eraretuya@gmail.com</email>
</author>
<published>2016-10-20T09:19:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=71ccbe5dc566021ec5f810917bec7312527e421e'/>
<id>urn:sha1:71ccbe5dc566021ec5f810917bec7312527e421e</id>
<content type='text'>
Replace the type of 'force' flag from int to bool and at the same time
rename it to 'force_autochannels' for better readability.

Suggested-by: Peter Meerwald-Stadler &lt;pmeerw@pmeerw.net&gt;
Signed-off-by: Eva Rachel Retuya &lt;eraretuya@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>tools: iio: iio_generic_buffer: add -A to force-enable all channels</title>
<updated>2016-10-23T18:33:53+00:00</updated>
<author>
<name>Eva Rachel Retuya</name>
<email>eraretuya@gmail.com</email>
</author>
<published>2016-10-14T10:18:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=4e2cf0e21f5c4792a0b21325557974ddbf111d2f'/>
<id>urn:sha1:4e2cf0e21f5c4792a0b21325557974ddbf111d2f</id>
<content type='text'>
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 &lt;amsfield22@gmail.com&gt;
Signed-off-by: Eva Rachel Retuya &lt;eraretuya@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>tools: iio: iio_generic_buffer: fix argument '?' option</title>
<updated>2016-09-22T17:46:39+00:00</updated>
<author>
<name>Mugunthan V N</name>
<email>mugunthanvnm@ti.com</email>
</author>
<published>2016-09-21T16:57:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=44c5ba96ec1083b7694a88fd99c3012213314b82'/>
<id>urn:sha1:44c5ba96ec1083b7694a88fd99c3012213314b82</id>
<content type='text'>
When help ('?') option is passed to the command, the help text
printed but not from '?' switch case of getopt_long() but as a
invalid argument as below. Fix this by adding '?' to opt_String
of getopt_long().

root@am437x-evm:~# ./iio_generic_buffer -?
./iio_generic_buffer: invalid option -- '?'
Usage: generic_buffer [options]...
Capture, convert and output data from IIO device buffer
  -a         Auto-activate all available channels
...

Signed-off-by: Mugunthan V N &lt;mugunthanvnm@ti.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>tools:iio:iio_generic_buffer: fix trigger-less mode</title>
<updated>2016-08-29T17:06:21+00:00</updated>
<author>
<name>Gregor Boirie</name>
<email>gregor.boirie@parrot.com</email>
</author>
<published>2016-08-24T13:28:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f8e81d7e496ea89f377c6935b92022032bed62e5'/>
<id>urn:sha1:f8e81d7e496ea89f377c6935b92022032bed62e5</id>
<content type='text'>
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:
7c7e9dad70 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 &lt;gregor.boirie@parrot.com&gt;
Fixes: deb4d1fdcb5af ("iio: generic_buffer: Fix --trigger-num option")
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>tools: iio: iio_generic_buffer: initialize channel array pointer</title>
<updated>2016-08-15T16:05:30+00:00</updated>
<author>
<name>Alison Schofield</name>
<email>amsfield22@gmail.com</email>
</author>
<published>2016-07-27T03:17:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=ddbc719f99cf9aed6918cef98cb3475fd4fc4fa6'/>
<id>urn:sha1:ddbc719f99cf9aed6918cef98cb3475fd4fc4fa6</id>
<content type='text'>
Uninitialized channel pointer causes segmentation fault when we
call free(channel) during cleanup() with no channels initialized.
This happens when you exit early for usage errors.  Initialize
the pointer to NULL when it is declared.

Signed-off-by: Alison Schofield &lt;amsfield22@gmail.com&gt;
Cc: Daniel Baluta &lt;daniel.baluta@gmail.com&gt;
Tested-by: Gregor Boirie &lt;gregor.boirie@parrot.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: generic_buffer: Fix --trigger-num option</title>
<updated>2016-06-11T16:38:06+00:00</updated>
<author>
<name>Crestez Dan Leonard</name>
<email>leonard.crestez@intel.com</email>
</author>
<published>2016-06-03T18:56:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=deb4d1fdcb5af079896f7ca5e8067e69485f6bdd'/>
<id>urn:sha1:deb4d1fdcb5af079896f7ca5e8067e69485f6bdd</id>
<content type='text'>
Initialize trig_num to -1 and handle trig_num=0 as a valid id.

Fixes: 7c7e9dad (iio: iio_generic_buffer: Add --trigger-num option)
Signed-off-by: Crestez Dan Leonard &lt;leonard.crestez@intel.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: iio_generic_buffer: Add --trigger-num option</title>
<updated>2016-05-29T19:42:50+00:00</updated>
<author>
<name>Crestez Dan Leonard</name>
<email>leonard.crestez@intel.com</email>
</author>
<published>2016-05-23T18:39:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=7c7e9dad7017ff5b5f0524ea6d85dcda3c62431e'/>
<id>urn:sha1:7c7e9dad7017ff5b5f0524ea6d85dcda3c62431e</id>
<content type='text'>
Signed-off-by: Crestez Dan Leonard &lt;leonard.crestez@intel.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: iio_generic_buffer: Add --device-num option</title>
<updated>2016-05-29T19:39:41+00:00</updated>
<author>
<name>Crestez Dan Leonard</name>
<email>leonard.crestez@intel.com</email>
</author>
<published>2016-05-23T18:39:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=de397db8ab9e292ed3b5be42d0892a0ec717330d'/>
<id>urn:sha1:de397db8ab9e292ed3b5be42d0892a0ec717330d</id>
<content type='text'>
This makes it possible to distinguish between iio devices with the same
name.

Signed-off-by: Crestez Dan Leonard &lt;leonard.crestez@intel.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: iio_generic_buffer: Cleanup when receiving signals</title>
<updated>2016-05-29T19:37:23+00:00</updated>
<author>
<name>Crestez Dan Leonard</name>
<email>leonard.crestez@intel.com</email>
</author>
<published>2016-05-23T18:39:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=4f20d5927b8e900ff1c3ee590b700ca71cd3f3ca'/>
<id>urn:sha1:4f20d5927b8e900ff1c3ee590b700ca71cd3f3ca</id>
<content type='text'>
This will clean (disable buffer/trigger/channels) when doing
something like a CTRL-C. Otherwise restarting generic_buffer requires a
manual echo 0 &gt; buffer/enable

This also cleanup up all the code freeing string buffers at
the end of main. We initialize all pointers to NULL so that cleanup can
all be done under a single error label.

Signed-off-by: Crestez Dan Leonard &lt;leonard.crestez@intel.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
</feed>
