summaryrefslogtreecommitdiff
path: root/drivers/staging/sm750fb/ddk750_hwi2c.c
diff options
context:
space:
mode:
authorMatej Vasek <xvasek1@fi.muni.cz>2016-01-25 16:02:33 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-07 18:53:35 -0800
commitfbb8c963573926bceb5c59e2a7d74e5ce7669e78 (patch)
tree50573e14690d8234a39759e3484afe5caac4cbb1 /drivers/staging/sm750fb/ddk750_hwi2c.c
parentfe7185908a4e981ae484043806a4f24d6cf09e91 (diff)
staging: sm750fb, fix typos
The code contained typos like "structur", "fointers", etc. Fix that. No code change, only comments. Signed-off-by: Matej Vasek <xvasek1@fi.muni.cz> Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Cc: Teddy Wang <teddy.wang@siliconmotion.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: <linux-fbdev@vger.kernel.org> Cc: <devel@driverdev.osuosl.org> Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb/ddk750_hwi2c.c')
-rw-r--r--drivers/staging/sm750fb/ddk750_hwi2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/sm750fb/ddk750_hwi2c.c b/drivers/staging/sm750fb/ddk750_hwi2c.c
index b824681e55a7..40253bd8cf2a 100644
--- a/drivers/staging/sm750fb/ddk750_hwi2c.c
+++ b/drivers/staging/sm750fb/ddk750_hwi2c.c
@@ -127,7 +127,7 @@ static unsigned int hw_i2c_write_data(
if (hw_i2c_wait_tx_done() != 0)
break;
- /* Substract length */
+ /* Subtract length */
length -= (count + 1);
/* Total byte written */
@@ -194,7 +194,7 @@ static unsigned int hw_i2c_read_data(
for (i = 0; i <= count; i++)
*buf++ = PEEK32(I2C_DATA0 + i);
- /* Substract length by 16 */
+ /* Subtract length by 16 */
length -= (count + 1);
/* Number of bytes read. */