<feed xmlns='http://www.w3.org/2005/Atom'>
<title>talos-op-linux/include/linux/iio/iio.h, branch v3.7</title>
<subtitle>Talos™ II Linux sources for OpenPOWER</subtitle>
<id>https://git.raptorcs.com/git/talos-op-linux/atom?h=v3.7</id>
<link rel='self' href='https://git.raptorcs.com/git/talos-op-linux/atom?h=v3.7'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/'/>
<updated>2012-10-19T15:12:38+00:00</updated>
<entry>
<title>iio: Add some helper macros for unit conversion</title>
<updated>2012-10-19T15:12:38+00:00</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2012-10-15T09:35:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=9dbf8ccde1b810a59b684e1d1aec7f9d2d007162'/>
<id>urn:sha1:9dbf8ccde1b810a59b684e1d1aec7f9d2d007162</id>
<content type='text'>
Some datasheets use a different unit to specify the channel scale than what IIO
expects it to be. This patch adds two helper macros which allow to convert units
commonly used in datasheets to IIO units:

 * acceleration: g -&gt; meter / second**2
 * angular velocity: degree (/ second) -&gt; rad (/ second)

This makes it much more convenient to specify and also easier to verify a
channel's scale attribute.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio:inkern: Add function to read the processed value</title>
<updated>2012-09-17T20:48:51+00:00</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2012-09-17T12:17:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=48e44ce0f8810b530fc83a4f5eb67149280d9b82'/>
<id>urn:sha1:48e44ce0f8810b530fc83a4f5eb67149280d9b82</id>
<content type='text'>
Add a function to read a processed value from a channel. The function will first
attempt to read the IIO_CHAN_INFO_PROCESSED attribute. If that fails it will
read the IIO_CHAN_INFO_RAW attribute and convert the result from a raw value to
a processed value.

The patch also introduces a function to convert raw value to a processed value
and exports it, in case a user needs or wants to do the conversion by itself.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: core: Add hysteresis in channel spec</title>
<updated>2012-09-06T18:04:45+00:00</updated>
<author>
<name>srinivas pandruvada</name>
<email>srinivas.pandruvada@intel.com</email>
</author>
<published>2012-09-05T12:56:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=7c9ab035acb4088dbbf1fec2f478a3a9e47ba15b'/>
<id>urn:sha1:7c9ab035acb4088dbbf1fec2f478a3a9e47ba15b</id>
<content type='text'>
Added hysteresis to the list of channel info enumeration, shared
/separate bit defines and to postfix channel info strings.

Signed-off-by: srinivas pandruvada &lt;srinivas.pandruvada@intel.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: whitespace cleanup and removal of semicolon after functions</title>
<updated>2012-09-03T19:26:43+00:00</updated>
<author>
<name>Peter Meerwald</name>
<email>pmeerw@pmeerw.net</email>
</author>
<published>2012-08-26T12:43:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=99698b45670a37b5304d5c6a743c8e96baa9ed8f'/>
<id>urn:sha1:99698b45670a37b5304d5c6a743c8e96baa9ed8f</id>
<content type='text'>
Signed-off-by: Peter Meerwald &lt;pmeerw@pmeerw.net&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: fix typos</title>
<updated>2012-09-03T19:26:43+00:00</updated>
<author>
<name>Peter Meerwald</name>
<email>pmeerw@pmeerw.net</email>
</author>
<published>2012-08-26T12:43:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=d25b3808db3a03deb12ffc0660c757b4a619f262'/>
<id>urn:sha1:d25b3808db3a03deb12ffc0660c757b4a619f262</id>
<content type='text'>
Signed-off-by: Peter Meerwald &lt;pmeerw@pmeerw.net&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: document missing elements</title>
<updated>2012-09-03T19:26:42+00:00</updated>
<author>
<name>Peter Meerwald</name>
<email>pmeerw@pmeerw.net</email>
</author>
<published>2012-08-26T12:43:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=c3668a0f8097af2f24a5fd67695f4ee830f99eda'/>
<id>urn:sha1:c3668a0f8097af2f24a5fd67695f4ee830f99eda</id>
<content type='text'>
Signed-off-by: Peter Meerwald &lt;pmeerw@pmeerw.net&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: Introduce iio_device_{set,get}_drvdata()</title>
<updated>2012-08-27T16:52:26+00:00</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2012-08-10T16:36:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=2d66f389ccf2c3ffea93c0270ef34186e4995333'/>
<id>urn:sha1:2d66f389ccf2c3ffea93c0270ef34186e4995333</id>
<content type='text'>
Introduce two new helper functions to attach a arbitrary pointer to a IIO
device. This is useful to get access to external non-global data from within a
IIO device callbacks where only the IIO device is available.

Internally these functions use dev_{set,get}_drvdata() on the struct device
embedded in the IIO device.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: Add callback to check whether a scan mask is valid</title>
<updated>2012-07-09T17:18:15+00:00</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2012-07-09T09:00:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=939546d1a9f47ed169554c711e1e05965b84ffe1'/>
<id>urn:sha1:939546d1a9f47ed169554c711e1e05965b84ffe1</id>
<content type='text'>
This is useful for cases where the number of valid scan masks grows
exponentially, but it is rather easy to check whether a mask is valid or not
programmatically.

An example of such a case is a device with multiple ADCs where each ADC has a
upstream MUX, which allows to select from a number of physical channels.

  +-------+   +-------+
  |       |   |       | --- Channel 1
  | ADC 1 |---| MUX 1 | ---   ...
  |       |   |       | --- Channel M
  +-------+   +-------+

     .            .            .
     .            .            .
     .            .            .

  +-------+   +-------+
  |       |   |       | --- Channel M * N + 1
  | ADC N |---| MUX N | ---       ...
  |       |   |       | --- Channel M * N + M
  +-------+   +-------+

The number of necessary scan masks for this case is (M+1)**N - 1, on the other
hand it is easy to check whether subsets for each ADC of the scanmask have only
one bit set.

Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: typo in iio_chan_spec.ext_info comment</title>
<updated>2012-06-19T00:31:42+00:00</updated>
<author>
<name>Peter Meerwald</name>
<email>pmeerw@pmeerw.net</email>
</author>
<published>2012-06-18T18:33:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=9cc113bc84e683435c110268712d25aea05b8198'/>
<id>urn:sha1:9cc113bc84e683435c110268712d25aea05b8198</id>
<content type='text'>
Signed-off-by: Peter Meerwald &lt;pmeerw@pmeerw.net&gt;
Acked-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>iio: cleanup iio/iio.h</title>
<updated>2012-06-12T21:53:31+00:00</updated>
<author>
<name>Peter Meerwald</name>
<email>p.meerwald@bct-electronic.com</email>
</author>
<published>2012-06-12T13:38:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/talos-op-linux/commit/?id=7dcd7b60724cab551deba54f31752fa8959efab4'/>
<id>urn:sha1:7dcd7b60724cab551deba54f31752fa8959efab4</id>
<content type='text'>
indentation of parameter description,
fix parameter name (@dev -&gt; @indio_dev) in comments,
IIO device info structure -&gt; IIO device structure

Signed-off-by: Peter Meerwald &lt;pmeerw@pmeerw.net&gt;
Acked-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
