<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/iio/inkern.c, branch linux-3.17.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.17.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.17.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2014-08-25T15:55:28Z</updated>
<entry>
<title>iio:inkern: fix overwritten -EPROBE_DEFER in of_iio_channel_get_by_name</title>
<updated>2014-08-25T15:55:28Z</updated>
<author>
<name>Johannes Pointner</name>
</author>
<published>2014-08-25T08:04:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=872687f626e033b4ddfaec1e410057cfc6636d77'/>
<id>urn:sha1:872687f626e033b4ddfaec1e410057cfc6636d77</id>
<content type='text'>
Fixes: a2c12493ed7e ('iio: of_iio_channel_get_by_name() returns non-null pointers for error legs')

which improperly assumes that of_iio_channel_get_by_name must always
return NULL and thus now hides -EPROBE_DEFER.

Signed-off-by: Johannes Pointner &lt;johannes.pointner@br-automation.com&gt;
Reviewed-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
Cc: Stable@vger.kernel.org
</content>
</entry>
<entry>
<title>iio: of_iio_channel_get_by_name() returns non-null pointers for error legs</title>
<updated>2014-06-21T11:31:38Z</updated>
<author>
<name>Adam Thomson</name>
</author>
<published>2014-11-06T12:11:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a2c12493ed7e63a18cef33a71686d12ffcd6600e'/>
<id>urn:sha1:a2c12493ed7e63a18cef33a71686d12ffcd6600e</id>
<content type='text'>
Currently in the inkern.c code for IIO framework, the function
of_iio_channel_get_by_name() will return a non-NULL pointer when
it cannot find a channel using of_iio_channel_get() and when it
tries to search for 'io-channel-ranges' property and fails. This
is incorrect behaviour as the function which calls this expects
a NULL pointer for failure. This patch rectifies the issue.

Signed-off-by: Adam Thomson &lt;Adam.Thomson.Opensource@diasemi.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
Cc: Stable@vger.kernel.org
</content>
</entry>
<entry>
<title>IIO: core: Introduce read_raw_multi</title>
<updated>2014-04-29T21:05:32Z</updated>
<author>
<name>Srinivas Pandruvada</name>
</author>
<published>2014-04-28T23:51:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9fbfb4b37ed23f71aa9484484266381c6c6964cb'/>
<id>urn:sha1:9fbfb4b37ed23f71aa9484484266381c6c6964cb</id>
<content type='text'>
This callback is introduced to overcome some limitations of existing
read_raw callback. The functionality of both existing read_raw and
read_raw_multi is similar, both are used to request values from the
device. The current read_raw callback allows only two return values.
The new read_raw_multi allows returning multiple values. Instead of
passing just address of val and val2, it passes length and pointer
to values. Depending on the type and length of passed buffer, iio
client drivers can return multiple values.

Signed-off-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.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:33Z</updated>
<author>
<name>Sebastian Reichel</name>
</author>
<published>2014-10-03T16:25:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.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: inkern: fix iio_convert_raw_to_processed_unlocked</title>
<updated>2013-07-03T19:30:52Z</updated>
<author>
<name>Alexandre Belloni</name>
</author>
<published>2013-07-01T16:40:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f91d1b63a4e096d3023aaaafec9d9d3aff25997f'/>
<id>urn:sha1:f91d1b63a4e096d3023aaaafec9d9d3aff25997f</id>
<content type='text'>
When reading IIO_CHAN_INFO_OFFSET, the return value of iio_channel_read() for
success will be IIO_VAL*, checking for 0 is not correct.

Without this fix the offset applied by iio drivers will be ignored when
converting a raw value to one in appropriate base units (e.g mV) in
a IIO client drivers that use iio_convert_raw_to_processed including
iio-hwmon.

Cc: &lt;stable@vger.kernel.org&gt; # 3.10.x
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio:inkern: Fix typo/bug in convert raw to processed.</title>
<updated>2013-06-04T17:46:45Z</updated>
<author>
<name>Michael Hennerich</name>
</author>
<published>2013-06-03T08:04:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6c5d4c96f979611f0165dc825af9e1cea8dd35b9'/>
<id>urn:sha1:6c5d4c96f979611f0165dc825af9e1cea8dd35b9</id>
<content type='text'>
Signed-off-by: Michael Hennerich &lt;michael.hennerich@analog.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>inkern: iio_device_put after incorrect return/goto</title>
<updated>2013-06-04T17:28:21Z</updated>
<author>
<name>Joe Perches</name>
</author>
<published>2013-06-04T14:44:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e916b80d2b1988e985abc0a1c85eca5b96c61f48'/>
<id>urn:sha1:e916b80d2b1988e985abc0a1c85eca5b96c61f48</id>
<content type='text'>
The code uses

    return foo;
    goto err_type;

when instead the form should have been

    ret = foo;
    goto err_type;

Here this causes a useful iio_device_put to be skipped.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: Add OF support</title>
<updated>2013-03-16T10:17:59Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2013-02-07T17:09:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=17d82b47a215ded05ee3fb8d93b7c1269dbe0083'/>
<id>urn:sha1:17d82b47a215ded05ee3fb8d93b7c1269dbe0083</id>
<content type='text'>
Provide bindings and parse OF data during initialization.

Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
Reviewed-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:52Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2013-02-04T20:26:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.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: Simplify iio_map_array_unregister API</title>
<updated>2013-02-02T12:02:20Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2013-01-31T21:43:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6cb2afd7c0abb93bd9dc6d36b858b1e312e2407d'/>
<id>urn:sha1:6cb2afd7c0abb93bd9dc6d36b858b1e312e2407d</id>
<content type='text'>
Instead of requiring the map to unregister, simply unregister all map entries
associated with the given iio device. This simplifies map removal and also works
for maps generated through devicetree.

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