<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/iio/magnetometer, branch linux-4.12.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.12.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.12.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-08-30T08:26:41Z</updated>
<entry>
<title>iio: magnetometer: st_magn: remove ihl property for LSM303AGR</title>
<updated>2017-08-30T08:26:41Z</updated>
<author>
<name>Lorenzo Bianconi</name>
</author>
<published>2017-08-16T17:02:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=91628e2afc865de2c8d288ec8ba117d872a40856'/>
<id>urn:sha1:91628e2afc865de2c8d288ec8ba117d872a40856</id>
<content type='text'>
commit 8b35a5f87a73842601cd376e0f5b9b25831390f4 upstream.

Remove IRQ active low support for LSM303AGR since the sensor does not
support that capability for data-ready line

Fixes: a9fd053b56c6 (iio: st_sensors: support active-low interrupts)
Signed-off-by: Lorenzo Bianconi &lt;lorenzo.bianconi@st.com&gt;
Reviewed-by: Linus Walleij &lt;linus.walleij@linaro.org&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: magnetometer: st_magn: fix status register address for LSM303AGR</title>
<updated>2017-08-30T08:26:41Z</updated>
<author>
<name>Lorenzo Bianconi</name>
</author>
<published>2017-08-16T17:02:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e59c095c11af506fa98a92957ac669080cbd0e04'/>
<id>urn:sha1:e59c095c11af506fa98a92957ac669080cbd0e04</id>
<content type='text'>
commit 541ee9b24fca587f510fe1bc58508d5cf40707af upstream.

Fixes: 97865fe41322 (iio: st_sensors: verify interrupt event to status)
Signed-off-by: Lorenzo Bianconi &lt;lorenzo.bianconi@st.com&gt;
Reviewed-by: Linus Walleij &lt;linus.walleij@linaro.org&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>Merge 4.11-rc4 into staging-next</title>
<updated>2017-03-27T07:11:25Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
</author>
<published>2017-03-27T07:11:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1c816bad41fea5470e8077ae4e661f3f9b5ada64'/>
<id>urn:sha1:1c816bad41fea5470e8077ae4e661f3f9b5ada64</id>
<content type='text'>
We need the IIO fixes in here as well to handle merge issues.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>iio: magnetometer: mag3110: Add OF device ID table</title>
<updated>2017-03-19T10:57:24Z</updated>
<author>
<name>Javier Martinez Canillas</name>
</author>
<published>2017-03-15T04:45:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ee9a90735b44ee35521ebdb8f898335a8fe86427'/>
<id>urn:sha1:ee9a90735b44ee35521ebdb8f898335a8fe86427</id>
<content type='text'>
The driver doesn't have a struct of_device_id table but supported devices
are registered via Device Trees. This is working on the assumption that a
I2C device registered via OF will always match a legacy I2C device ID and
that the MODALIAS reported will always be of the form i2c:&lt;device&gt;.

But this could change in the future so the correct approach is to have an
OF device ID table if the devices are registered via OF.

Signed-off-by: Javier Martinez Canillas &lt;javier@osg.samsung.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: magnetometer: bmc150_magn_i2c: Add OF device ID table</title>
<updated>2017-03-19T10:50:10Z</updated>
<author>
<name>Javier Martinez Canillas</name>
</author>
<published>2017-03-15T04:44:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=49926b121674ed3e80e1a655ffd64ccf0e566efa'/>
<id>urn:sha1:49926b121674ed3e80e1a655ffd64ccf0e566efa</id>
<content type='text'>
The driver doesn't have a struct of_device_id table but supported devices
are registered via Device Trees. This is working on the assumption that a
I2C device registered via OF will always match a legacy I2C device ID and
that the MODALIAS reported will always be of the form i2c:&lt;device&gt;.

But this could change in the future so the correct approach is to have an
OF device ID table if the devices are registered via OF.

Signed-off-by: Javier Martinez Canillas &lt;javier@osg.samsung.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: magnetometer: ak8974: remove incorrect __exit markups</title>
<updated>2017-03-05T13:52:01Z</updated>
<author>
<name>Dmitry Torokhov</name>
</author>
<published>2017-03-01T23:37:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3ff861f59f6c1f5bf2bc03d2cd36ac3f992cbc06'/>
<id>urn:sha1:3ff861f59f6c1f5bf2bc03d2cd36ac3f992cbc06</id>
<content type='text'>
Even if bus is not hot-pluggable, devices can be unbound from the
driver via sysfs, so we should not be using __exit annotations on
remove() methods. The only exception is drivers registered with
platform_driver_probe() which specifically disables sysfs bind/unbind
attributes.

Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
Reviewed-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: magnetometer: mag3110: claim direct mode during raw writes</title>
<updated>2017-01-21T12:20:40Z</updated>
<author>
<name>Alison Schofield</name>
</author>
<published>2017-01-20T20:39:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=80dea21f95a4672cce545f48dc2ca500b69a2584'/>
<id>urn:sha1:80dea21f95a4672cce545f48dc2ca500b69a2584</id>
<content type='text'>
Driver was checking for direct mode but not locking it.  Use
claim/release helper functions to guarantee the device stays
in direct mode during raw writes.

Signed-off-by: Alison Schofield &lt;amsfield22@gmail.com&gt;
Acked-by: Peter Meerwald-Stadler &lt;pmeerw@pmeerw.net&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: magnetometer: ak8974: remove redundant zero timeout check</title>
<updated>2017-01-14T13:10:04Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2017-01-11T17:49:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e2eb179c0031b8cd172d8a7869451ff57184388b'/>
<id>urn:sha1:e2eb179c0031b8cd172d8a7869451ff57184388b</id>
<content type='text'>
At the end of the delay loop timeout will always be zero
and hence the check for !timeout will always be true. Remove
the redundant check and the redundant return 0 at the end of
the function.

Fixes CoverityScan CID#1357168 ("Logically dead code")

Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Reviewed-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: magnetometer: separate the values of attributes based on their usage type for HID compass sensor</title>
<updated>2016-11-24T20:41:30Z</updated>
<author>
<name>Ooi, Joyce</name>
</author>
<published>2016-11-16T09:43:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6f771d0b338d59c492699814b0fe554f9d1ee27c'/>
<id>urn:sha1:6f771d0b338d59c492699814b0fe554f9d1ee27c</id>
<content type='text'>
There are 2 usage types (Magnetic Flux and Heading data field) for HID
compass sensor, thus the values of offset, scale, and sensitivity should
be separated according to their respective usage type. The changes made
are as below:
1. Hysteresis: A struct hid_sensor_common rot_attributes is created in
struct magn_3d_state to contain the sensitivity for IIO_ROT.
2. Scale: scale_pre_decml and scale_post_decml are separated for IIO_MAGN
and IIO_ROT.
3. Offset: Same as scale, value_offset is separated for IIO_MAGN and
IIO_ROT.

For sensitivity, HID_USAGE_SENSOR_ORIENT_MAGN_FLUX and
HID_USAGE_SENSOR_ORIENT_MAGN_HEADING are used for sensivitity fields based
on the HID Sensor Usages specifications. Hence, these changes are added on
the sensitivity field.

Signed-off-by: Ooi, Joyce &lt;joyce.ooi@intel.com&gt;
Acked-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: magn: st_magn: inline per-sensor data</title>
<updated>2016-11-12T15:45:37Z</updated>
<author>
<name>Linus Walleij</name>
</author>
<published>2016-11-09T15:09:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=57d035545165a354a52f5d16d46efbb318a2fff4'/>
<id>urn:sha1:57d035545165a354a52f5d16d46efbb318a2fff4</id>
<content type='text'>
We have #defines for all the individual sensor registers and
value/mask pairs #defined at the top of the file and used at
exactly one spot.

This is usually good if the #defines give a meaning to the
opaque magic numbers.

However in this case, the semantic meaning is inherent in the
name of the C99-addressable fields, and that means duplication
of information, and only makes the code hard to maintain since
you every time have to add a new #define AND update the site
where it is to be used.

Get rid of the #defines and just open code the values into the
appropriate struct elements. Make sure to explicitly address
the .hz and .value fields in the st_sensor_odr_avl struct
so that the meaning of all values is clear.

This patch is purely syntactic should have no semantic effect.

Signed-off-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
</feed>
