summaryrefslogtreecommitdiff
path: root/Documentation/i2c
diff options
context:
space:
mode:
authorSam Hansen <hansens@google.com>2018-04-13 10:42:57 -0700
committerWolfram Sang <wsa@the-dreams.de>2018-04-18 10:09:44 +0200
commit40d802cb66ad110673e40cb3426b1f1c79645104 (patch)
tree21f7b3e34ef638b5dd03e4d27e762940dc13622a /Documentation/i2c
parentb50cb3eaf7c8d13e427f991f7d52b485ca0fc65f (diff)
Documentation/i2c: adopt kernel commenting style in examples
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>
Diffstat (limited to 'Documentation/i2c')
-rw-r--r--Documentation/i2c/dev-interface6
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/i2c/dev-interface b/Documentation/i2c/dev-interface
index f92ee1f59914..fbed645ccd75 100644
--- 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;