<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/iio/gyro, branch linux-5.5.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.5.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.5.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-02-01T09:32:55Z</updated>
<entry>
<title>iio: st_gyro: Correct data for LSM9DS0 gyro</title>
<updated>2020-02-01T09:32:55Z</updated>
<author>
<name>Andy Shevchenko</name>
</author>
<published>2019-12-17T17:10:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d376a17621cda188335e6fac61c337ebf12477af'/>
<id>urn:sha1:d376a17621cda188335e6fac61c337ebf12477af</id>
<content type='text'>
commit e825070f697abddf3b9b0a675ed0ff1884114818 upstream.

The commit 41c128cb25ce ("iio: st_gyro: Add lsm9ds0-gyro support")
assumes that gyro in LSM9DS0 is the same as others with 0xd4 WAI ID,
but datasheet tells slight different story, i.e. the first scale factor
for the chip is 245 dps, and not 250 dps.

Correct this by introducing a separate settings for LSM9DS0.

Fixes: 41c128cb25ce ("iio: st_gyro: Add lsm9ds0-gyro support")
Depends-on: 45a4e4220bf4 ("iio: gyro: st_gyro: fix L3GD20H support")
Cc: Leonard Crestez &lt;leonard.crestez@nxp.com&gt;
Cc: Lorenzo Bianconi &lt;lorenzo.bianconi83@gmail.com&gt;
Cc: &lt;Stable@vger.kernel.org&gt;
Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>iio: gyro: adis16136: check ret val for non-zero vs less-than-zero</title>
<updated>2019-11-03T10:14:44Z</updated>
<author>
<name>Alexandru Ardelean</name>
</author>
<published>2019-11-01T09:34:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=26ba6db672698641223eece20beeb59a60032eb9'/>
<id>urn:sha1:26ba6db672698641223eece20beeb59a60032eb9</id>
<content type='text'>
The ADIS library functions return zero on success, and negative values for
error. Positive values aren't returned, but we only care about the success
value (which is zero).

This change is mostly needed so that the compiler won't make any inferences
about some about values being potentially un-initialized. This only
triggers after making some functions inline, because the compiler can
better follow return paths.

Signed-off-by: Alexandru Ardelean &lt;alexandru.ardelean@analog.com&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: st: Drop GPIO include</title>
<updated>2019-10-27T15:55:45Z</updated>
<author>
<name>Linus Walleij</name>
</author>
<published>2019-10-23T08:47:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=12737476e0992bde3e14e2df2fedf43a117abf71'/>
<id>urn:sha1:12737476e0992bde3e14e2df2fedf43a117abf71</id>
<content type='text'>
None of the ST sensor drivers use any symbols from
&lt;linux/gpio.h&gt;, just drop the include from all of them.

Signed-off-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: gyro: mpu3050: Explicity make a 'poison' value big endian</title>
<updated>2019-10-18T18:55:05Z</updated>
<author>
<name>Jonathan Cameron</name>
</author>
<published>2019-10-13T10:02:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1123c084d75116bb6d4a0ff3801facde786093a5'/>
<id>urn:sha1:1123c084d75116bb6d4a0ff3801facde786093a5</id>
<content type='text'>
This clearly has no actual affect but it does show sparse and similar
static analysers that we are doing this intentionally.

CHECK   drivers/iio/gyro/mpu3050-core.c
drivers/iio/gyro/mpu3050-core.c:546:48: warning: incorrect type in assignment (different base types)
drivers/iio/gyro/mpu3050-core.c:546:48:    expected restricted __be16 &lt;noident&gt;
drivers/iio/gyro/mpu3050-core.c:546:48:    got int

Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Reviewed-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
</content>
</entry>
<entry>
<title>iio: gyro: clean up indentation issue</title>
<updated>2019-10-07T20:31:22Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2019-09-25T12:32:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4dbc54c55923ff0934a2d6e7facdbed21ed423c0'/>
<id>urn:sha1:4dbc54c55923ff0934a2d6e7facdbed21ed423c0</id>
<content type='text'>
There is a return statement that is indented incorrectly, add in
the missing tab.

Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: gyro: adis16080: replace mlock with own lock</title>
<updated>2019-10-05T14:54:58Z</updated>
<author>
<name>Alexandru Ardelean</name>
</author>
<published>2019-09-19T13:23:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9318a9e547438078104b0e8557f76f0cb524c12e'/>
<id>urn:sha1:9318a9e547438078104b0e8557f76f0cb524c12e</id>
<content type='text'>
The lock is used to protect the buffer during reads. Though the spi
routines have their own locks, it may be the case that the buffer needs to
be protected before it's stored and passed to the IIO read hooks.

indio_dev's mlock was used before.
This change replaces it with the driver's own lock.

Signed-off-by: Alexandru Ardelean &lt;alexandru.ardelean@analog.com&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: gyro: adis16130: remove mlock usage</title>
<updated>2019-10-05T12:45:03Z</updated>
<author>
<name>Alexandru Ardelean</name>
</author>
<published>2019-09-17T16:10:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ea14163d29130649e43bfcad12ef6ef9a956fbe3'/>
<id>urn:sha1:ea14163d29130649e43bfcad12ef6ef9a956fbe3</id>
<content type='text'>
The use of indio_dev's mlock is discouraged. The driver already defines
it's own `bus_lock` in `adis16130_spi_read()`, so using the mlock is
redundant.

The parts supported by this chip are obsoleted anyway, so for now we just
remove mlock as part of a general cleanup, until the driver gets removed.

Signed-off-by: Alexandru Ardelean &lt;alexandru.ardelean@analog.com&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio:st_sensors: remove buffer allocation at each buffer enable</title>
<updated>2019-08-11T08:26:04Z</updated>
<author>
<name>Denis Ciocca</name>
</author>
<published>2019-08-05T18:57:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e031d5f558f1535968df1ecae8d734b84c17f78d'/>
<id>urn:sha1:e031d5f558f1535968df1ecae8d734b84c17f78d</id>
<content type='text'>
This patch is removing the buffer allocation at each buffer enable.
We just allocate enough memory in the main structure during probe
to cover maximum size needed (that anyway is pretty small) [16bytes].

Signed-off-by: Denis Ciocca &lt;denis.ciocca@st.com&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: remove get_irq_data_ready() function pointer and use IRQ number directly</title>
<updated>2019-08-05T15:50:08Z</updated>
<author>
<name>Denis Ciocca</name>
</author>
<published>2019-08-02T17:59:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9cd15d521a3adcb687a0f9a312e32caaa94f44c2'/>
<id>urn:sha1:9cd15d521a3adcb687a0f9a312e32caaa94f44c2</id>
<content type='text'>
Not even sure why it was there since the beginning. Just use IRQ
number in the sensor_data struct.

Signed-off-by: Denis Ciocca &lt;denis.ciocca@st.com&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio:gyro: preenable/postenable/predisable fixup for ST gyro buffer</title>
<updated>2019-08-05T14:49:12Z</updated>
<author>
<name>Denis Ciocca</name>
</author>
<published>2019-07-31T21:48:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=21b1ee3190340007378448fa1cae2f46046c2d35'/>
<id>urn:sha1:21b1ee3190340007378448fa1cae2f46046c2d35</id>
<content type='text'>
This patch is trying to cleanup for good the buffers operation functions.
There is no need of using preenable, all can be done into
postenable. Let's also use logical sequence of operations as
already done in accel driver.
Finally also rename the goto label using operation to perform and not
where it fails.

Not stable material as not fixing a 'bug' but rather bringing the
driver in line with general 'patterns' to allow a subsystem wide
cleanup.

Signed-off-by: Denis Ciocca &lt;denis.ciocca@st.com&gt;
Reviewed-by: Alexandru Ardelean &lt;alexandru.ardelean@analog.com&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
</feed>
