OpenCloudOS-Kernel/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 i2c-mux-gpio: Update documentation 2012-10-05 22:23:54 +02:00
dev-interface Documentation: i2c: rename variable "register" to "reg" 2014-09-07 15:21:13 -07:00
fault-codes Documentation: i2c: Remove obsolete example 2014-01-09 23:02:46 +01:00
functionality i2c: Spelling s/than/that/ 2014-03-12 08:15:41 +01:00
i2c-protocol Documentation: i2c: improve section about flags mangling the protocol 2014-04-06 13:53:48 +02:00
i2c-stub i2c: stub: Add support for banked register ranges 2014-07-17 19:56:15 +02:00
instantiating-devices Documentation: i2c: mention ACPI method for instantiating devices 2014-02-15 19:46:34 +01:00
old-module-parameters i2c: Drop probe, ignore and force module parameters 2009-12-06 17:06:24 +01:00
smbus-protocol i2c: core: Remove definition of i2c_smbus_process_call 2013-01-28 05:26:41 +01:00
summary i2c: Delete an outdated piece of documentation 2007-12-12 13:45:24 +01:00
ten-bit-addresses i2c: Fix device name for 10-bit slave address 2011-11-23 11:33:07 +01:00
upgrading-clients doc: Fix typo in doucmentations 2013-07-25 12:34:15 +02:00
writing-clients i2c: core: Remove definition of i2c_smbus_process_call 2013-01-28 05:26:41 +01:00