From: Jose Manuel Alarcon Roldan Date: Sun, 7 Sep 2014 18:25:00 +0000 (-0700) Subject: Documentation: i2c: rename variable "register" to "reg" X-Git-Tag: fixes-v3.17-rc4~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=257d6ef4aafa5078e469eb277dfd49841a736618;p=pandora-kernel.git 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 Signed-off-by: Randy Dunlap Acked-by: Wolfram Sang Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed