staging: keucr: Fix typo in keucr driver
authorMasanari Iida <standby24x7@gmail.com>
Thu, 12 Dec 2013 13:22:59 +0000 (22:22 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2013 21:10:40 +0000 (13:10 -0800)
Correct spelling typo in comment and printk.

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/keucr/smcommon.h
drivers/staging/keucr/smil.h
drivers/staging/keucr/smilecc.c
drivers/staging/keucr/smilmain.c

index 4d57203b64d861858eed5e4ec2b4c0f221f53bfd..1d2752a1d5c49412d674c050a28f9f3841387949 100644 (file)
@@ -4,7 +4,7 @@
 
 
 /***************************************************************************
-Define Difinetion
+Define Definition
 ***************************************************************************/
 #define SMSUCCESS           0x0000 /* SUCCESS */
 #define ERROR               0xFFFF /* ERROR */
index fff6c9e6164a08b55d6e5a71af583c057377d027..9136e94472614ef978189f30c9103ff470b6881f 100644 (file)
@@ -45,7 +45,7 @@ Retry Counter Definition
 Hardware ECC Definition
 ***************************************************************************/
 #define HW_ECC_SUPPORTED    1     /* Hardware ECC Supported */
-/* No difinition for Software ECC */
+/* No definition for Software ECC */
 
 /***************************************************************************
 SmartMedia Command & Status Definition
index 3085f1d4a4ebe154be32040a43b183fbbe849055..6b8f7d7a7436f5b633c8e63345056fa954d833d1 100644 (file)
@@ -139,7 +139,7 @@ BYTE correct_data(BYTE *data, BYTE *eccdata, BYTE ecc1, BYTE ecc2, BYTE ecc3)
        BYTE bit; /* Bit address of cor. DATA */
 
        d1 = ecc1^eccdata[1]; d2 = ecc2^eccdata[0]; /* Compare LP's */
-       d3 = ecc3^eccdata[2]; /* Comapre CP's */
+       d3 = ecc3^eccdata[2]; /* Compare CP's */
        d = ((DWORD)d1<<16) /* Result of comparison */
        +((DWORD)d2<<8)
        +(DWORD)d3;
index 9434cda885ca73ace4b84936f7d872185725cd6e..09d07e05102ff21a9e64bee9a92072f53eefc3cd 100644 (file)
@@ -432,7 +432,7 @@ static int Copy_D_PhyOneSect(struct us_data *us)
        int           i;
        DWORD  err, retry;
 
-       /* pr_info("Copy_D_PhyOneSect --- Secotr = %x\n", Media.Sector); */
+       /* pr_info("Copy_D_PhyOneSect --- Sector = %x\n", Media.Sector); */
        if (ReadBlock != NO_ASSIGN) {
                Media.PhyBlock = ReadBlock;
                for (retry = 0; retry < 2; retry++) {