<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/Documentation/i2c/dev-interface, branch master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/Documentation/i2c/dev-interface?h=master</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/Documentation/i2c/dev-interface?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2019-07-31T19:25:27Z</updated>
<entry>
<title>docs: i2c: convert to ReST and add to driver-api bookset</title>
<updated>2019-07-31T19:25:27Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab+samsung@kernel.org</email>
</author>
<published>2019-07-26T12:51:16Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=ccf988b66d697efcd0ceccc2398e0d9b909cd17c'/>
<id>urn:sha1:ccf988b66d697efcd0ceccc2398e0d9b909cd17c</id>
<content type='text'>
Convert each file at I2C subsystem, renaming them to .rst and
adding to the driver-api book.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
Acked-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
Acked-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Acked-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
<entry>
<title>Documentation/i2c: adopt kernel commenting style in examples</title>
<updated>2018-04-18T08:09:44Z</updated>
<author>
<name>Sam Hansen</name>
<email>hansens@google.com</email>
</author>
<published>2018-04-13T17:42:57Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=40d802cb66ad110673e40cb3426b1f1c79645104'/>
<id>urn:sha1:40d802cb66ad110673e40cb3426b1f1c79645104</id>
<content type='text'>
The example I2C code is rewritten to adopt the preferred kernel block
commenting style.

Signed-off-by: Sam Hansen &lt;hansens@google.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
<entry>
<title>Documentation/i2c: sync docs with current state of i2c-tools</title>
<updated>2018-04-18T08:09:15Z</updated>
<author>
<name>Sam Hansen</name>
<email>hansens@google.com</email>
</author>
<published>2018-04-13T17:42:56Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=b50cb3eaf7c8d13e427f991f7d52b485ca0fc65f'/>
<id>urn:sha1:b50cb3eaf7c8d13e427f991f7d52b485ca0fc65f</id>
<content type='text'>
Currently, Documentation/i2c/dev-interface describes the use of
i2c_smbus_* helper routines as static inlined functions provided by
linux/i2c-dev.h.  Work has been done to refactor the linux/i2c-dev.h file
in the i2c-tools project out into its own library.  As a result, these
docs have become stale.

This patch corrects the discrepancy and directs the reader to the
i2c-tools project for more information.

Signed-off-by: Sam Hansen &lt;hansens@google.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
<entry>
<title>Documentation/i2c: whitespace cleanup</title>
<updated>2018-04-18T08:07:59Z</updated>
<author>
<name>Sam Hansen</name>
<email>hansens@google.com</email>
</author>
<published>2018-04-13T17:42:55Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=675edea10badf5b3446275d60e1bd2105905d498'/>
<id>urn:sha1:675edea10badf5b3446275d60e1bd2105905d498</id>
<content type='text'>
This strips trailing whitespace in Documentation/i2c/dev-interface.

Signed-off-by: Sam Hansen &lt;hansens@google.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
<entry>
<title>i2c: update i2c-dev.h warning in documentation</title>
<updated>2017-12-21T20:39:30Z</updated>
<author>
<name>Cengiz C</name>
<email>cengizc@gmail.com</email>
</author>
<published>2017-12-12T16:43:09Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=91b28aeb17ce13065d745a1f92c95011c10ba75a'/>
<id>urn:sha1:91b28aeb17ce13065d745a1f92c95011c10ba75a</id>
<content type='text'>
`Documentation/i2c/dev-interface` gives examples for accessing i2c from
userspace.

There's a note that warns developers about the two `i2c-dev.h` header
files which were shipped with the kernel and i2c-tools separately.

However, following i2c-tools commits suggest that the header files are now
identical (in functionality) and `i2c_*` helper functions are now defined
in a separate header called `i2c/smbus.h`, which is distributed with
i2c-tools:

commit 652619121974 ("Minimize differences with kernel flavor")
commit 93caf007f4cb ("Move SMBus helper functions to include/i2c/smbus.h")

Thus, I've converted the warning paragraph into a historical note and
updated the suggested header files.

Signed-off-by: Cengiz Can &lt;cengizc@gmail.com&gt;
Cc: Wolfram Sang &lt;wsa@the-dreams.de&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
<entry>
<title>docs: i2c: dev-interface: adapt to new filenames of the i2c core</title>
<updated>2017-05-31T19:01:05Z</updated>
<author>
<name>Wolfram Sang</name>
<email>wsa@the-dreams.de</email>
</author>
<published>2017-05-25T20:55:42Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=984b292333ea873cfa1eb5ae17344b40a43e26c3'/>
<id>urn:sha1:984b292333ea873cfa1eb5ae17344b40a43e26c3</id>
<content type='text'>
The I2C core files were renamed, adapt the textfile to it.

Reviewed-by: Andy Shevchenko &lt;andy.shevchenko@gmail.com&gt;
Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
<entry>
<title>Doc: i2c: Fix typo in Documentation/i2c</title>
<updated>2016-02-10T20:12:14Z</updated>
<author>
<name>Masanari Iida</name>
<email>standby24x7@gmail.com</email>
</author>
<published>2016-02-02T11:41:25Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=2e049d6132eb960e1039b607039d0c8761ba0c31'/>
<id>urn:sha1:2e049d6132eb960e1039b607039d0c8761ba0c31</id>
<content type='text'>
This path fix spelling typos found in Documentation/i2c.

Signed-off-by: Masanari Iida &lt;standby24x7@gmail.com&gt;
Signed-off-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
</content>
</entry>
<entry>
<title>Documentation: i2c: rename variable "register" to "reg"</title>
<updated>2014-09-07T22:21:13Z</updated>
<author>
<name>Jose Manuel Alarcon Roldan</name>
<email>jose.alarcon.roldan@gmail.com</email>
</author>
<published>2014-09-07T18:25:00Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=257d6ef4aafa5078e469eb277dfd49841a736618'/>
<id>urn:sha1:257d6ef4aafa5078e469eb277dfd49841a736618</id>
<content type='text'>
The example code provided with the i2c device interface documentation
won't compile since it uses the reserved word "register" to name a
variable.

The compiler fails with this error message:

 error: expected identifier or '(' before '=' token
   __u8 register = 0x20; /* Device register to access */
                 ^

Rename the variable "register" to simply "reg" in the example code.

Another couple of typos has been fixed as well.
[Change "! =" to "!=".]

Signed-off-by: Jose Alarcon Roldan &lt;jose.alarcon.roldan@gmail.com&gt;
Signed-off-by: Randy Dunlap &lt;rdunlap@infradead.org&gt;
Acked-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>i2c: Document the implementation details of the /dev interface</title>
<updated>2008-10-14T15:30:05Z</updated>
<author>
<name>Jean Delvare</name>
<email>khali@linux-fr.org</email>
</author>
<published>2008-10-14T15:30:05Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=7c15fd1249658e203b2ac8661e48da6c2102e563'/>
<id>urn:sha1:7c15fd1249658e203b2ac8661e48da6c2102e563</id>
<content type='text'>
I wrote this explanation to answer a question on the i2c mailing list,
and thought it would be good to have in the kernel documentation.

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</content>
</entry>
<entry>
<title>i2c: Improve dev-interface documentation</title>
<updated>2008-10-14T15:30:05Z</updated>
<author>
<name>Jean Delvare</name>
<email>khali@linux-fr.org</email>
</author>
<published>2008-10-14T15:30:05Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=fceb2d06800ddae53095f63843d85fcff4f701ac'/>
<id>urn:sha1:fceb2d06800ddae53095f63843d85fcff4f701ac</id>
<content type='text'>
* Clarify some points.
* Point developers to i2c-tools instead of lm_sensors.
* Fix coding style in code examples.

Signed-off-by: Jean Delvare &lt;khali@linux-fr.org&gt;
</content>
</entry>
</feed>
