<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/iio/humidity, 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-04-02T08:50:32Z</updated>
<entry>
<title>iio: humidity: hts221: Remove unnecessary cast on void pointer</title>
<updated>2017-04-02T08:50:32Z</updated>
<author>
<name>simran singhal</name>
</author>
<published>2017-04-01T14:14:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7ae6df68d68ed1d68d6bac11edc332da67108d8f'/>
<id>urn:sha1:7ae6df68d68ed1d68d6bac11edc332da67108d8f</id>
<content type='text'>
The following Coccinelle script was used to detect this:
@r@
expression x;
void* e;
type T;
identifier f;
@@
(
  *((T *)e)
|
  ((T *)x)[...]
|
  ((T*)x)-&gt;f
|
- (T*)
  e
)

Signed-off-by: simran singhal &lt;singhalsimran0@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: humidity: hdc100x: constify attribute_group structures</title>
<updated>2017-04-01T10:37:06Z</updated>
<author>
<name>simran singhal</name>
</author>
<published>2017-04-01T08:23:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=757cff86a8942c50558bf91805f8e6bf0b6128b8'/>
<id>urn:sha1:757cff86a8942c50558bf91805f8e6bf0b6128b8</id>
<content type='text'>
Check for attribute_group structures that are only stored in the
attrs filed of iio_info structure. As the attrs field of iio_info
structures is constant, so these attribute_group structures can also be
declared constant.
Done using coccinelle:

@r1 disable optional_qualifier @
identifier i;
position p;
@@
static struct attribute_group i@p = {...};

@ok1@
identifier r1.i;
position p;
struct iio_info x;
@@
x.attrs=&amp;i@p;

@bad@
position p!={r1.p,ok1.p};
identifier r1.i;
@@
i@p

@depends on !bad disable optional_qualifier@
identifier r1.i;
@@
static
+const
struct attribute_group i={...};

@depends on !bad disable optional_qualifier@
identifier r1.i;
@@
+const
struct attribute_group i;

File size before:
   text	   data	    bss	    dec	    hex	filename
   3459	    488	      0	   3947	    f6b	drivers/iio/humidity/hdc100x.o

File size after:
   text	   data	    bss	    dec	    hex	filename
   3507	    424	      0	   3931	    f5b	drivers/iio/humidity/hdc100x.o

Signed-off-by: simran singhal &lt;singhalsimran0@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: hid: Add humidity sensor support</title>
<updated>2017-03-25T16:32:24Z</updated>
<author>
<name>Song Hongyan</name>
</author>
<published>2017-03-20T14:28:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d7ed89d5aadf09f1060cd3a9cf07df17447c7392'/>
<id>urn:sha1:d7ed89d5aadf09f1060cd3a9cf07df17447c7392</id>
<content type='text'>
Environmental humidity sensor is a hid defined sensor,
it shows raw humidity measurement of air.

More information can be found in:
http://www.usb.org/developers/hidpage/HUTRR39b.pdf

According to IIO ABI definition, humidityrelative data output unit is
milli percent. Add the unit convert from percent to milli percent.

Signed-off-by: Song Hongyan &lt;hongyan.song@intel.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge 4.10-rc7 into staging-next</title>
<updated>2017-02-06T08:36:10Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
</author>
<published>2017-02-06T08:36:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a769f30c7bd7cf917eea05a2b448f3588a87d767'/>
<id>urn:sha1:a769f30c7bd7cf917eea05a2b448f3588a87d767</id>
<content type='text'>
This resolves the merge errors that were reported in linux-next and it
picks up the staging and IIO fixes that we need/want in here as well.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>iio: dht11: Use usleep_range instead of msleep for start signal</title>
<updated>2017-01-22T13:35:40Z</updated>
<author>
<name>John Brooks</name>
</author>
<published>2017-01-18T21:50:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5c113b5e0082e90d2e1c7b12e96a7b8cf0623e27'/>
<id>urn:sha1:5c113b5e0082e90d2e1c7b12e96a7b8cf0623e27</id>
<content type='text'>
The DHT22 (AM2302) datasheet specifies that the LOW start pulse should not
exceed 20ms. However, observations with an oscilloscope of an RPi Model 2B
(rev 1.1) communicating with a DHT22 sensor showed that the driver was
consistently sending start pulses longer than 20ms:

Kernel 4.7.10-v7+ (n=132):
    Minimum pulse length: 20.20ms
    Maximum:              29.84ms
    Mean:                 24.96ms
    StDev:                2.82ms
    Sensor response rate: 100%
    Read success rate:    76%

On kernel 4.8, the start pulse was so long that the sensor would not even
respond 97% of the time:

Kernel 4.8.16-v7+ (n=100):
    Minimum pulse length: 30.4ms
    Maximum:              74.4ms
    Mean:                 39.3ms
    StDev:                10.2ms
    Sensor response rate: 3%
    Read success rate:    3%

The driver would return ETIMEDOUT and write log messages like this:

[   51.430987] dht11 dht11@0: Only 1 signal edges detected
[   66.311019] dht11 dht11@0: Only 0 signal edges detected

Replacing msleep(18) with usleep_range(18000, 20000) made the pulse length
sane again and restored responsiveness:

Kernel 4.8.16-v7+ with usleep_range (n=123):
    Minimum pulse length: 18.16ms
    Maximum:              20.20ms
    Mean:                 19.85ms
    StDev:                0.51ms
    Sensor response rate: 100%
    Read success rate:    84%

Cc: stable@vger.kernel.org
Signed-off-by: John Brooks &lt;john@fastquake.com&gt;
Reviewed-by: Harald Geyer &lt;harald@ccbib.org&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: humidity: Support acpi probe for hts211</title>
<updated>2016-12-03T08:56:28Z</updated>
<author>
<name>Shrirang Bagul</name>
</author>
<published>2016-11-24T09:07:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=25fc503e2dca093b63e335e4b4ec2226df947601'/>
<id>urn:sha1:25fc503e2dca093b63e335e4b4ec2226df947601</id>
<content type='text'>
Support driver probe by reading unique HID on systems based on ACPI instead
of DT compatible strings.

Signed-off-by: Shrirang Bagul &lt;shrirang.bagul@canonical.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: si7020: Add devicetree support and trivial bindings</title>
<updated>2016-11-01T18:49:53Z</updated>
<author>
<name>Paul Kocialkowski</name>
</author>
<published>2016-10-25T19:20:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b0d801985418e0890adf14398373b9c4470911d1'/>
<id>urn:sha1:b0d801985418e0890adf14398373b9c4470911d1</id>
<content type='text'>
This adds devicetree support for the si7020 iio driver. Since it works
well without requiring any additional property, its compatible string is
added to the trivial i2c devices bindings list.

Signed-off-by: Paul Kocialkowski &lt;contact@paulk.fr&gt;
Acked-by: Rob Herring &lt;robh@kernel.org&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: humidity: remove duplicated include from hts221_buffer.c</title>
<updated>2016-11-01T18:43:46Z</updated>
<author>
<name>Wei Yongjun</name>
</author>
<published>2016-10-29T16:11:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d1c67534123d088289fa847809ba1a6fa11b1932'/>
<id>urn:sha1:d1c67534123d088289fa847809ba1a6fa11b1932</id>
<content type='text'>
Remove duplicated include.

Signed-off-by: Wei Yongjun &lt;weiyongjun1@huawei.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: humidity: hdc100x: add triggered buffer support for HDC100X</title>
<updated>2016-10-23T18:34:25Z</updated>
<author>
<name>Alison Schofield</name>
</author>
<published>2016-09-02T17:23:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=16bf793f86b21959fd683ec28b8d196a0520de2f'/>
<id>urn:sha1:16bf793f86b21959fd683ec28b8d196a0520de2f</id>
<content type='text'>
Triggered buffer support uses the HDC100X's dual acquisition mode
to read both humidity and temperature in one shot.

This patch depends on
	447136effbf4 ("iio: humidity: hdc100x: fix sensor data reads of
		       temp and humidity")

Signed-off-by: Alison Schofield &lt;amsfield22@gmail.com&gt;
Cc: Daniel Baluta &lt;daniel.baluta@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: humidity: add support to hts221 rh/temp combo device</title>
<updated>2016-10-23T18:34:09Z</updated>
<author>
<name>Lorenzo Bianconi</name>
</author>
<published>2016-10-13T20:06:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e4a70e3e7d846a8db8e20c18a4d8a6cf35bcf29c'/>
<id>urn:sha1:e4a70e3e7d846a8db8e20c18a4d8a6cf35bcf29c</id>
<content type='text'>
Add support to STM HTS221 humidity + temperature sensor

http://www.st.com/resource/en/datasheet/hts221.pdf

- continuous mode support
- i2c support
- spi support
- trigger mode support

Signed-off-by: Lorenzo Bianconi &lt;lorenzo.bianconi@st.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
</feed>
