lkml.org 
[lkml]   [2018]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 3/3] Documentation/i2c: adopt kernel commenting style in examples

> - int adapter_nr = 2; /* probably dynamically determined */

Such comments are actually OK.

> - /* ERROR HANDLING; you can check errno to see what went wrong */

Such as well.

> - /* 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).
> + */

This is the only broken one AFAICT.

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2018-04-13 18:50    [W:0.145 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site