<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/include/linux/iio/consumer.h, branch v4.9.232</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v4.9.232</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v4.9.232'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2016-08-21T10:47:19+00:00</updated>
<entry>
<title>iio: buffer-callback: allow getting underlying iio_dev</title>
<updated>2016-08-21T10:47:19+00:00</updated>
<author>
<name>Matt Ranostay</name>
<email>mranostay@gmail.com</email>
</author>
<published>2016-08-20T03:17:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=adca058b56108eb3458165c6a9e5d78558be8b52'/>
<id>urn:sha1:adca058b56108eb3458165c6a9e5d78558be8b52</id>
<content type='text'>
Add iio_channel_cb_get_iio_dev function to allow getting the
underlying iio_dev. This is useful for setting the trigger of the
consumer ADC device.

Signed-off-by: Matt Ranostay &lt;mranostay@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: core: Add devm_ APIs for iio_channel_{get,release}_all</title>
<updated>2016-04-19T18:58:15+00:00</updated>
<author>
<name>Laxman Dewangan</name>
<email>ldewangan@nvidia.com</email>
</author>
<published>2016-04-06T10:31:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=efc2c0133f198bc65593a67015af358919b0c48f'/>
<id>urn:sha1:efc2c0133f198bc65593a67015af358919b0c48f</id>
<content type='text'>
Some of kernel driver uses the IIO framework to get the sensor
value via ADC or IIO HW driver. The client driver get iio channel
by iio_channel_get_all() and release it by calling
iio_channel_release_all().

Add resource managed version (devm_*) of these APIs so that if client
calls the devm_iio_channel_get_all() then it need not to release it
explicitly, it can be done by managed device framework when driver
get un-binded.

This reduces the code in error path and also need of .remove callback in
some cases.

Signed-off-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: core: Add devm_ APIs for iio_channel_{get,release}</title>
<updated>2016-04-19T18:58:14+00:00</updated>
<author>
<name>Laxman Dewangan</name>
<email>ldewangan@nvidia.com</email>
</author>
<published>2016-04-06T10:31:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=8bf872d8d261feefcdf67027522e3f717cad2bfe'/>
<id>urn:sha1:8bf872d8d261feefcdf67027522e3f717cad2bfe</id>
<content type='text'>
Some of kernel driver uses the IIO framework to get the sensor
value via ADC or IIO HW driver. The client driver get iio channel
by iio_channel_get() and release it by calling iio_channel_release().

Add resource managed version (devm_*) of these APIs so that if client
calls the devm_iio_channel_get() then it need not to release it explicitly,
it can be done by managed device framework when driver get un-binded.

This reduces the code in error path and also need of .remove callback in
some cases.

Signed-off-by: Laxman Dewangan &lt;ldewangan@nvidia.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>include: linux: iio: Fix function parameter name in kernel doc</title>
<updated>2015-08-02T17:34:18+00:00</updated>
<author>
<name>Cristina Opriceana</name>
<email>cristina.opriceana@gmail.com</email>
</author>
<published>2015-07-24T13:23:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e52e95199d0c1aa8a06dbbc07b30562fded8b298'/>
<id>urn:sha1:e52e95199d0c1aa8a06dbbc07b30562fded8b298</id>
<content type='text'>
Fix buffer name from kernel doc according to the function parameter.

Signed-off-by: Cristina Opriceana &lt;cristina.opriceana@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: consumer.h: Fix scale factor in function comment</title>
<updated>2014-12-12T12:28:36+00:00</updated>
<author>
<name>Ivan T. Ivanov</name>
<email>iivanov@mm-sol.com</email>
</author>
<published>2014-09-23T12:51:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=09546a30632fd35996373146657d5a0296fd37ca'/>
<id>urn:sha1:09546a30632fd35996373146657d5a0296fd37ca</id>
<content type='text'>
1 milivolt is equal to 1000000 nanovolts.

Signed-off-by: Ivan T. Ivanov &lt;iivanov@mm-sol.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: inkern: add iio_write_channel_raw</title>
<updated>2014-12-12T12:28:27+00:00</updated>
<author>
<name>Dmitry Eremin-Solenikov</name>
<email>dbaryshkov@gmail.com</email>
</author>
<published>2014-11-26T22:42:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f9380e7123863a4cb0627d940533be954a0a15df'/>
<id>urn:sha1:f9380e7123863a4cb0627d940533be954a0a15df</id>
<content type='text'>
Introduce API for easy in-kernel setting of DAC values.

Signed-off-by: Dmitry Eremin-Solenikov &lt;dbaryshkov@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: inkern: add iio_read_channel_average_raw</title>
<updated>2014-03-16T18:00:33+00:00</updated>
<author>
<name>Sebastian Reichel</name>
<email>sre@debian.org</email>
</author>
<published>2014-10-03T16:25:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=476d4af22cec8a9ebc90137712e5ab7070b7379d'/>
<id>urn:sha1:476d4af22cec8a9ebc90137712e5ab7070b7379d</id>
<content type='text'>
Add iio_read_channel_average_raw to support reading
averaged raw values in consumer drivers.

Signed-off-by: Sebastian Reichel &lt;sre@debian.org&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: iio_push_to_buffers(): Change type of 'data' to const void *</title>
<updated>2013-09-15T18:02:07+00:00</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2013-09-15T16:50:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=5d65d92045cb7d3b2c45020c0e62d6d1c1d34f37'/>
<id>urn:sha1:5d65d92045cb7d3b2c45020c0e62d6d1c1d34f37</id>
<content type='text'>
Change the type of the 'data' parameter for iio_push_to_buffers() from 'u8 *' to
'const void *'. Drivers typically use the correct type (e.g. __be16 *) for their
data buffer. When passing the buffer to iio_push_to_buffers() it needs to be
cast to 'u8 *' for the compiler to not complain (and also having to add __force
if we want to keep sparse happy as well). Since the buffer implementation should
not care about the data layout (except the size of one sample) using a void
pointer is the correct thing to do. Also make it const as the buffer
implementations are not supposed to modify it.

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: Update iio_channel_get API to use consumer device pointer as argument</title>
<updated>2013-02-06T19:23:52+00:00</updated>
<author>
<name>Guenter Roeck</name>
<email>linux@roeck-us.net</email>
</author>
<published>2013-02-04T20:26:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=5aa57f0a655276f62683c0cc714cd6328d98e08a'/>
<id>urn:sha1:5aa57f0a655276f62683c0cc714cd6328d98e08a</id>
<content type='text'>
For iio_channel_get to work with OF based configurations, it needs the
consumer device pointer instead of the consumer device name as argument.

Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
Acked-by: Anton Vorontsov &lt;anton@enomsg.org&gt;
Acked-by: Chanwoo Choi &lt;cw00.choi@samsung.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: Update iio_channel_get_all and iio_channel_get_all_cb API</title>
<updated>2013-02-02T11:58:46+00:00</updated>
<author>
<name>Guenter Roeck</name>
<email>linux@roeck-us.net</email>
</author>
<published>2013-01-31T21:43:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=ca7d98dbd7db6aa8bc4b08e26be1249436d21af3'/>
<id>urn:sha1:ca7d98dbd7db6aa8bc4b08e26be1249436d21af3</id>
<content type='text'>
Pass device pointer instead of device name as parameter to iio_channel_get_all
and iio_channel_get_all_cb. This will enable us to use OF information to
retrieve consumer channel information.

Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
</feed>
