projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b50cb3e
)
Documentation/i2c: adopt kernel commenting style in examples
author
Sam Hansen
<hansens@google.com>
Fri, 13 Apr 2018 17:42:57 +0000
(10:42 -0700)
committer
Wolfram Sang
<wsa@the-dreams.de>
Wed, 18 Apr 2018 08:09:44 +0000
(10:09 +0200)
The example I2C code is rewritten to adopt the preferred kernel block
commenting style.
Signed-off-by: Sam Hansen <hansens@google.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Documentation/i2c/dev-interface
patch
|
blob
|
history
diff --git
a/Documentation/i2c/dev-interface
b/Documentation/i2c/dev-interface
index f92ee1f59914170494a07fa28b72adb3f700e0b2..fbed645ccd7563e90e86796d13cae7cfa7329748 100644
(file)
--- a/
Documentation/i2c/dev-interface
+++ b/
Documentation/i2c/dev-interface
@@
-67,8
+67,10
@@
the device supports them. Both are illustrated below.
/* res contains the read word */
}
- /* Using I2C Write, equivalent of
- i2c_smbus_write_word_data(file, reg, 0x6543) */
+ /*
+ * Using I2C Write, equivalent of
+ * i2c_smbus_write_word_data(file, reg, 0x6543)
+ */
buf[0] = reg;
buf[1] = 0x43;
buf[2] = 0x65;