<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lwn.git/drivers/iio/potentiometer, branch docs-5.3</title>
<subtitle>Linux kernel documentation tree maintained by Jonathan Corbet</subtitle>
<id>http://mirrors.hust.edu.cn/git/lwn.git/atom?h=docs-5.3</id>
<link rel='self' href='http://mirrors.hust.edu.cn/git/lwn.git/atom?h=docs-5.3'/>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/'/>
<updated>2019-05-21T08:50:46+00:00</updated>
<entry>
<title>treewide: Add SPDX license identifier - Makefile/Kconfig</title>
<updated>2019-05-21T08:50:46+00:00</updated>
<author>
<name>Thomas Gleixner</name>
<email>tglx@linutronix.de</email>
</author>
<published>2019-05-19T12:07:45+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=ec8f24b7faaf3d4799a7c3f4c1b87f6b02778ad1'/>
<id>urn:sha1:ec8f24b7faaf3d4799a7c3f4c1b87f6b02778ad1</id>
<content type='text'>
Add SPDX license identifiers to all Make/Kconfig files which:

 - Have no license information of any form

These files fall under the project license, GPL v2 only. The resulting SPDX
license identifier is:

  GPL-2.0-only

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drivers: iio: Kconfig: pedantic cleanup</title>
<updated>2019-04-04T19:19:56+00:00</updated>
<author>
<name>Enrico Weigelt, metux IT consult</name>
<email>info@metux.net</email>
</author>
<published>2019-03-06T14:52:23+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=d626be00e856c0cec3b5f420e7f061829538d63b'/>
<id>urn:sha1:d626be00e856c0cec3b5f420e7f061829538d63b</id>
<content type='text'>
Formatting of Kconfig files doesn't look so pretty, so just
take damp cloth and clean it up.

Signed-off-by: Enrico Weigelt, metux IT consult &lt;info@metux.net&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: potentiometer: Add driver for Microchip MCP41xxx/42xxx</title>
<updated>2018-11-25T12:35:26+00:00</updated>
<author>
<name>Chris Coffey</name>
<email>cmc@babblebit.net</email>
</author>
<published>2018-11-20T14:17:13+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=092cb71a604e2d8dd3b79fddef779a2d4aaad5a8'/>
<id>urn:sha1:092cb71a604e2d8dd3b79fddef779a2d4aaad5a8</id>
<content type='text'>
This patch adds driver support for the Microchip MCP41xxx/42xxx family
of digital potentiometers:

DEVICE      Wipers  Positions   Resistance (kOhm)
MCP41010    1       256         10
MCP41050    1       256         50
MCP41100    1       256         100
MCP42010    2       256         10
MCP42050    2       256         50
MCP42100    2       256         100

Datasheet: http://ww1.microchip.com/downloads/en/devicedoc/11195c.pdf

Signed-off-by: Chris Coffey &lt;cmc@babblebit.net&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: potentiometer: mcp4131: use of_device_get_match_data()</title>
<updated>2018-11-16T18:32:35+00:00</updated>
<author>
<name>Slawomir Stepien</name>
<email>sst@poczta.fm</email>
</author>
<published>2018-11-16T09:47:21+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=853bfaf43555e6352e4f9d7856603f6443292d05'/>
<id>urn:sha1:853bfaf43555e6352e4f9d7856603f6443292d05</id>
<content type='text'>
Try to get the device's data using OF API. In case of failure, fallback
to the spi_get_device_id() method.

Signed-off-by: Slawomir Stepien &lt;sst@poczta.fm&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: potentiometer: tpl0102: add IIO_AVAIL_RANGE support</title>
<updated>2018-11-11T15:29:45+00:00</updated>
<author>
<name>Matt Ranostay</name>
<email>matt.ranostay@konsulko.com</email>
</author>
<published>2018-10-28T20:43:54+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=74cf7b8614bc0ddad9ba00857b54cec1ef2ac635'/>
<id>urn:sha1:74cf7b8614bc0ddad9ba00857b54cec1ef2ac635</id>
<content type='text'>
Report the step range of the respective potentiometers that are
possible to userspace.

Signed-off-by: Matt Ranostay &lt;matt.ranostay@konsulko.com&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: potentiometer: tpl0102: switch to using pointer to chip config</title>
<updated>2018-11-11T15:29:42+00:00</updated>
<author>
<name>Matt Ranostay</name>
<email>matt.ranostay@konsulko.com</email>
</author>
<published>2018-10-24T10:38:57+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=ee2303515e7555abb93297d8b8d8a55b0d156388'/>
<id>urn:sha1:ee2303515e7555abb93297d8b8d8a55b0d156388</id>
<content type='text'>
More concise to have a pointer to tpl0102_cfg struct in the iio_priv
data than an integer to an index of an array.

Signed-off-by: Matt Ranostay &lt;matt.ranostay@konsulko.com&gt;
Reviewed-by: Slawomir Stepien &lt;sst@poczta.fm&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: potentiometer: mcp4531: switch to SPDX license identifier</title>
<updated>2018-08-20T18:26:25+00:00</updated>
<author>
<name>Peter Rosin</name>
<email>peda@axentia.se</email>
</author>
<published>2018-08-20T10:01:11+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=0ba56985824e2232ac2d8dfe5e793385c36527d4'/>
<id>urn:sha1:0ba56985824e2232ac2d8dfe5e793385c36527d4</id>
<content type='text'>
Drop the boilerplate license text and use the correct MODULE_LICENSE.

Signed-off-by: Peter Rosin &lt;peda@axentia.se&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: potentiometer: mcp4018: use the correct MODULE_LICENSE</title>
<updated>2018-08-20T18:25:07+00:00</updated>
<author>
<name>Peter Rosin</name>
<email>peda@axentia.se</email>
</author>
<published>2018-08-20T10:01:10+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=b9ea8c31e36e8e244becf5250ec28d82b8faf4b0'/>
<id>urn:sha1:b9ea8c31e36e8e244becf5250ec28d82b8faf4b0</id>
<content type='text'>
The file is GPL v2 only.

Signed-off-by: Peter Rosin &lt;peda@axentia.se&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: potentiometer: merge calls to of_match_device and of_device_get_match_data</title>
<updated>2018-08-19T19:16:39+00:00</updated>
<author>
<name>Julia Lawall</name>
<email>Julia.Lawall@lip6.fr</email>
</author>
<published>2018-05-21T09:49:10+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=ce7c637a8368d0293649a4acc0b89930295cb62a'/>
<id>urn:sha1:ce7c637a8368d0293649a4acc0b89930295cb62a</id>
<content type='text'>
Drop call to of_match_device, which is subsumed by the subsequent
call to of_device_get_match_data.  The code becomes simpler, and a
temporary variable can be dropped.

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

// &lt;smpl&gt;
@r@
local idexpression match;
identifier i;
expression x, dev, e, e1;
@@
-        match@i = of_match_device(x, dev);
-        if (match) e = of_device_get_match_data(dev);
-        else e = e1;
+        e = of_device_get_match_data(dev);
+        if (!e) e = e1;

@@
identifier r.i;
@@
- const struct of_device_id *i;
... when != i
// &lt;/smpl&gt;

Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Reviewed-by: Peter Rosin &lt;peda@axentia.se&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
<entry>
<title>iio: potentiometer: mcp4531: switch to using .probe_new</title>
<updated>2018-04-15T17:12:51+00:00</updated>
<author>
<name>Peter Rosin</name>
<email>peda@axentia.se</email>
</author>
<published>2018-04-11T12:49:15+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=c18af98bc875e8f2be99aad13b410f60d34064cf'/>
<id>urn:sha1:c18af98bc875e8f2be99aad13b410f60d34064cf</id>
<content type='text'>
Use the new probe style for i2c drivers.

Signed-off-by: Peter Rosin &lt;peda@axentia.se&gt;
Signed-off-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
</content>
</entry>
</feed>
