ubi: Fastmap: Fix typo
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 24 Nov 2017 11:14:06 +0000 (12:14 +0100)
committerRichard Weinberger <richard@nod.at>
Wed, 17 Jan 2018 23:18:50 +0000 (00:18 +0100)
Fix misspelling of 'available' in function name.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/fastmap-wl.c
drivers/mtd/ubi/wl.c
drivers/mtd/ubi/wl.h

index 4f0bd6b4422adc9bfa5c7bfd4f1afdd8abcdb4fc..590d967011bb78704c2e21be194ece15e1e5ce06 100644 (file)
@@ -66,7 +66,7 @@ static void return_unused_pool_pebs(struct ubi_device *ubi,
        }
 }
 
-static int anchor_pebs_avalible(struct rb_root *root)
+static int anchor_pebs_available(struct rb_root *root)
 {
        struct rb_node *p;
        struct ubi_wl_entry *e;
index 668b46202507ce7f0b59a998d2b34e7d92cc2bbc..77ab49f2743b1ae2279d9d42379ee0dc81634c1c 100644 (file)
@@ -692,7 +692,7 @@ static int wear_leveling_worker(struct ubi_device *ubi, struct ubi_work *wrk,
 #ifdef CONFIG_MTD_UBI_FASTMAP
        /* Check whether we need to produce an anchor PEB */
        if (!anchor)
-               anchor = !anchor_pebs_avalible(&ubi->free);
+               anchor = !anchor_pebs_available(&ubi->free);
 
        if (anchor) {
                e1 = find_anchor_wl_entry(&ubi->used);
index 2aaa3f7f2ba982034c321f22f925859b4f76d4d8..a9e2d669acd81d4c7e2bb37c683d489ff6b4e203 100644 (file)
@@ -2,7 +2,7 @@
 #ifndef UBI_WL_H
 #define UBI_WL_H
 #ifdef CONFIG_MTD_UBI_FASTMAP
-static int anchor_pebs_avalible(struct rb_root *root);
+static int anchor_pebs_available(struct rb_root *root);
 static void update_fastmap_work_fn(struct work_struct *wrk);
 static struct ubi_wl_entry *find_anchor_wl_entry(struct rb_root *root);
 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi);