Documentation: i2c: rename variable "register" to "reg"
authorJose Manuel Alarcon Roldan <jose.alarcon.roldan@gmail.com>
Sun, 7 Sep 2014 18:25:00 +0000 (11:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 7 Sep 2014 22:21:13 +0000 (15:21 -0700)
commit257d6ef4aafa5078e469eb277dfd49841a736618
treeef012101bd0475c6aa0c1507ed17388cdedda00b
parent77be4daf4e65eb1da70e6623ec61ecde62f5de95
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 <jose.alarcon.roldan@gmail.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/i2c/dev-interface