<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/iio, branch v3.6</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/iio?h=v3.6</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/iio?h=v3.6'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2012-08-27T20:15:25Z</updated>
<entry>
<title>drivers/iio/adc/at91_adc.c: adjust inconsistent IS_ERR and PTR_ERR</title>
<updated>2012-08-27T20:15:25Z</updated>
<author>
<name>Julia Lawall</name>
<email>Julia.Lawall@lip6.fr</email>
</author>
<published>2012-08-25T19:57:09Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f755bbbf1f9f180aa61eb730d638b62e225bfc10'/>
<id>urn:sha1:f755bbbf1f9f180aa61eb730d638b62e225bfc10</id>
<content type='text'>
Change the call to PTR_ERR to access the value just tested by IS_ERR.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// &lt;smpl&gt;
@@
expression e,e1;
@@

(
if (IS_ERR(e)) { ... PTR_ERR(e) ... }
|
if (IS_ERR(e=e1)) { ... PTR_ERR(e) ... }
|
*if (IS_ERR(e))
 { ...
*  PTR_ERR(e1)
   ... }
)
// &lt;/smpl&gt;

Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: lm3533-als: Fix build warnings</title>
<updated>2012-08-16T19:24:38Z</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@gmail.com</email>
</author>
<published>2012-08-02T10:10:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=95d1c8c7e26e303ccab5b65fe0ce04f70f42ea8a'/>
<id>urn:sha1:95d1c8c7e26e303ccab5b65fe0ce04f70f42ea8a</id>
<content type='text'>
Fix below build warnings:
  CC [M]  drivers/iio/light/lm3533-als.o
drivers/iio/light/lm3533-als.c:667:8: warning: initialization from incompatible pointer type [enabled by default]
drivers/iio/light/lm3533-als.c:667:8: warning: (near initialization for 'dev_attr_in_illuminance0_thresh_either_en.show') [enabled by default]
drivers/iio/light/lm3533-als.c:667:8: warning: initialization from incompatible pointer type [enabled by default]
drivers/iio/light/lm3533-als.c:667:8: warning: (near initialization for 'dev_attr_in_illuminance0_thresh_either_en.store') [enabled by default]

Signed-off-by: Axel Lin &lt;axel.lin@gmail.com&gt;
</content>
</entry>
<entry>
<title>iio/adjd_s311: Fix potential memory leak in adjd_s311_update_scan_mode()</title>
<updated>2012-08-16T19:24:33Z</updated>
<author>
<name>Alexey Khoroshilov</name>
<email>khoroshilov@ispras.ru</email>
</author>
<published>2012-08-08T09:58:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=1c795ebd00042b3a5c97e049fd1c08763714a7a8'/>
<id>urn:sha1:1c795ebd00042b3a5c97e049fd1c08763714a7a8</id>
<content type='text'>
Do not leak memory by updating pointer with potentially NULL realloc return value.
There is no need to preserve data in the buffer,
so replace krealloc() by kfree()-kmalloc() pair.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov &lt;khoroshilov@ispras.ru&gt;
Acked-by: Peter Meerwald &lt;pmeerw@pmeerw.net&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: frequency: ADF4350: Fix potential reference div factor overflow.</title>
<updated>2012-08-16T19:24:33Z</updated>
<author>
<name>Michael Hennerich</name>
<email>michael.hennerich@analog.com</email>
</author>
<published>2012-07-20T08:31:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=8857df3aceb7a8eb7558059b7da109e41dd1fb95'/>
<id>urn:sha1:8857df3aceb7a8eb7558059b7da109e41dd1fb95</id>
<content type='text'>
With small channel spacing values and high reference frequencies it is
possible to exceed the range of the 10-bit counter.
Workaround by checking the range and widening some constrains.

We don't use the REG1_PHASE value in this case the datasheet recommends to set
it to 1 if not used.

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>iio: fix pointer cast warning</title>
<updated>2012-07-15T16:33:17Z</updated>
<author>
<name>Peter Meerwald</name>
<email>pmeerw@pmeerw.net</email>
</author>
<published>2012-07-14T16:23:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=795876238f127089d96f268e2639eb0f56ec1a91'/>
<id>urn:sha1:795876238f127089d96f268e2639eb0f56ec1a91</id>
<content type='text'>
fix compile warning reported by Fengguang Wu:

drivers/iio/light/adjd_s311.c: In function 'adjd_s311_trigger_handler':
drivers/iio/light/adjd_s311.c:188:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
drivers/iio/light/adjd_s311.c:188:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

   185              }
   186
   187              if (indio_dev-&gt;scan_timestamp)
 &gt; 188                      *(s64 *)((phys_addr_t)data-&gt;buffer + ALIGN(len, sizeof(s64)))
   189                              = time_ns;
   190              iio_push_to_buffer(buffer, (u8 *)data-&gt;buffer, time_ns);
   191

Signed-off-by: Peter Meerwald &lt;pmeerw@pmeerw.net&gt;
Reported-by: Fengguang Wu &lt;fengguang.wu@intel.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge tag 'togreg-3.6a' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next</title>
<updated>2012-07-12T19:29:44Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2012-07-12T19:29:44Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=bd972ff3176caf91a49d1d754848c3f6c5435328'/>
<id>urn:sha1:bd972ff3176caf91a49d1d754848c3f6c5435328</id>
<content type='text'>
IIO: One new driver and a couple of nice cleanups.
</content>
</entry>
<entry>
<title>Merge tag 'fixes-togreg-3.6a' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into work-next</title>
<updated>2012-07-12T19:26:33Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2012-07-12T19:26:33Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=fc6ed2c6411e3ee0a3775d6d822f9b0169cc40a2'/>
<id>urn:sha1:fc6ed2c6411e3ee0a3775d6d822f9b0169cc40a2</id>
<content type='text'>
Various minor IIO fixes for staging-next.
</content>
</entry>
<entry>
<title>iio: double unlock on error path</title>
<updated>2012-07-12T19:00:20Z</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2012-07-11T06:34:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e59b9afecf7ddf52d31d24e800b473f19c23cfe0'/>
<id>urn:sha1:e59b9afecf7ddf52d31d24e800b473f19c23cfe0</id>
<content type='text'>
We should be holding the mutex when we goto error_free_chans.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: dac: ad5064: fix section mismatch in ad5064_init() in linux-next</title>
<updated>2012-07-12T19:00:08Z</updated>
<author>
<name>Gerard Snitselaar</name>
<email>dev@snitselaar.org</email>
</author>
<published>2012-07-11T04:05:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=21fa54e4017fb0ed2107282e6057528ca59b8942'/>
<id>urn:sha1:21fa54e4017fb0ed2107282e6057528ca59b8942</id>
<content type='text'>
ad5064_init() calls ad5064_spi_unregister_driver() which is annotated
__exit.

Signed-off-by: Gerard Snitselaar &lt;dev@snitselaar.org&gt;
Acked-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: ad5064: Move bus write callbacks to #if protected sections</title>
<updated>2012-07-12T16:57:16Z</updated>
<author>
<name>Lars-Peter Clausen</name>
<email>lars@metafoo.de</email>
</author>
<published>2012-07-11T08:01:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=9660ac704ec92ef535bf7c991cb7129b186007a5'/>
<id>urn:sha1:9660ac704ec92ef535bf7c991cb7129b186007a5</id>
<content type='text'>
Move the SPI and I2C specific write callbacks to the respective
"#if IS_ENABLED(CONFIG_SPI_MASTER)" and "#if IS_ENABLED(CONFIG_I2C)"
protected sections of the code.

This fixes the following warning which occurs if CONFIG_I2C is not set:
	drivers/iio/dac/ad5064.c: In function ‘ad5064_i2c_write’:
	drivers/iio/dac/ad5064.c:132: error: implicit declaration of function ‘i2c_master_send’

And the follwing warning which occurs when CONFIG_SPI_MASTER is not set:
	drivers/iio/dac/ad5064.c:137: warning: ‘ad5064_spi_write’ defined but not used

Reported-by: Randy Dunlap &lt;rdunlap@xenotime.net&gt;
Signed-off-by: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
</feed>
