Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40d802cb authored by Sam Hansen's avatar Sam Hansen Committed by Wolfram Sang
Browse files

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: default avatarSam Hansen <hansens@google.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent b50cb3ea
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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;