]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mtd: rawnand: r852: fix spelling mistake "card_registred" -> "card_registered"
authorColin Ian King <colin.king@canonical.com>
Thu, 27 Sep 2018 15:24:31 +0000 (16:24 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 8 Oct 2018 08:00:10 +0000 (10:00 +0200)
Trivial fix to spelling mistake struct field name, rename it.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/r852.c
drivers/mtd/nand/raw/r852.h

index b08aa0a5a074019833dc5ee4dc679de39fa0aefb..39be65b35ac251dde3e0f4d500b703fabc2ef3c9 100644 (file)
@@ -637,7 +637,7 @@ static int r852_register_nand_device(struct r852_device *dev)
 {
        struct mtd_info *mtd = nand_to_mtd(dev->chip);
 
-       WARN_ON(dev->card_registred);
+       WARN_ON(dev->card_registered);
 
        mtd->dev.parent = &dev->pci_dev->dev;
 
@@ -654,7 +654,7 @@ static int r852_register_nand_device(struct r852_device *dev)
                goto error3;
        }
 
-       dev->card_registred = 1;
+       dev->card_registered = 1;
        return 0;
 error3:
        nand_release(dev->chip);
@@ -672,13 +672,13 @@ static void r852_unregister_nand_device(struct r852_device *dev)
 {
        struct mtd_info *mtd = nand_to_mtd(dev->chip);
 
-       if (!dev->card_registred)
+       if (!dev->card_registered)
                return;
 
        device_remove_file(&mtd->dev, &dev_attr_media_type);
        nand_release(dev->chip);
        r852_engine_disable(dev);
-       dev->card_registred = 0;
+       dev->card_registered = 0;
 }
 
 /* Card state updater */
@@ -692,7 +692,7 @@ static void r852_card_detect_work(struct work_struct *work)
        dev->card_unstable = 0;
 
        /* False alarm */
-       if (dev->card_detected == dev->card_registred)
+       if (dev->card_detected == dev->card_registered)
                goto exit;
 
        /* Read media properties */
@@ -1033,7 +1033,7 @@ static int r852_resume(struct device *device)
 
 
        /* If card status changed, just do the work */
-       if (dev->card_detected != dev->card_registred) {
+       if (dev->card_detected != dev->card_registered) {
                dbg("card was %s during low power state",
                        dev->card_detected ? "added" : "removed");
 
@@ -1043,7 +1043,7 @@ static int r852_resume(struct device *device)
        }
 
        /* Otherwise, initialize the card */
-       if (dev->card_registred) {
+       if (dev->card_registered) {
                r852_engine_enable(dev);
                dev->chip->select_chip(dev->chip, 0);
                nand_reset_op(dev->chip);
index 1eed2fc2fa4275648c089aafd0de44188788a8a6..bc67f5bf67e8d07d5f2b2cec24d6817e62a81b2b 100644 (file)
@@ -129,7 +129,7 @@ struct r852_device {
        /* card status area */
        struct delayed_work card_detect_work;
        struct workqueue_struct *card_workqueue;
-       int card_registred;             /* card registered with mtd */
+       int card_registered;            /* card registered with mtd */
        int card_detected;              /* card detected in slot */
        int card_unstable;              /* whenever the card is inserted,
                                           is not known yet */