linux/Documentation/i2c
Jose Manuel Alarcon Roldan 257d6ef4aa 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>
2014-09-07 15:21:13 -07:00
..
busses i2c: i801: Add device ID for Intel Wildcat Point PCH 2014-07-17 19:56:23 +02:00
muxes
dev-interface Documentation: i2c: rename variable "register" to "reg" 2014-09-07 15:21:13 -07:00
fault-codes
functionality
i2c-protocol
i2c-stub i2c: stub: Add support for banked register ranges 2014-07-17 19:56:15 +02:00
instantiating-devices
old-module-parameters
smbus-protocol
summary
ten-bit-addresses
upgrading-clients
writing-clients