diff options
author | Jose Manuel Alarcon Roldan <[email protected]> | 2014-09-07 11:25:00 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-09-07 15:21:13 -0700 |
commit | 257d6ef4aafa5078e469eb277dfd49841a736618 (patch) | |
tree | ef012101bd0475c6aa0c1507ed17388cdedda00b /tools/perf/util/trace-event-scripting.c | |
parent | 77be4daf4e65eb1da70e6623ec61ecde62f5de95 (diff) |
Documentation: i2c: rename variable "register" to "reg"
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 <[email protected]>
Signed-off-by: Randy Dunlap <[email protected]>
Acked-by: Wolfram Sang <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions