Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ubi: Fastmap: Fix typo

Fix misspelling of 'available' in function name.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>

authored by

Sascha Hauer and committed by
Richard Weinberger
889027bc b3e73839

+3 -3
+1 -1
drivers/mtd/ubi/fastmap-wl.c
··· 66 66 } 67 67 } 68 68 69 - static int anchor_pebs_avalible(struct rb_root *root) 69 + static int anchor_pebs_available(struct rb_root *root) 70 70 { 71 71 struct rb_node *p; 72 72 struct ubi_wl_entry *e;
+1 -1
drivers/mtd/ubi/wl.c
··· 692 692 #ifdef CONFIG_MTD_UBI_FASTMAP 693 693 /* Check whether we need to produce an anchor PEB */ 694 694 if (!anchor) 695 - anchor = !anchor_pebs_avalible(&ubi->free); 695 + anchor = !anchor_pebs_available(&ubi->free); 696 696 697 697 if (anchor) { 698 698 e1 = find_anchor_wl_entry(&ubi->used);
+1 -1
drivers/mtd/ubi/wl.h
··· 2 2 #ifndef UBI_WL_H 3 3 #define UBI_WL_H 4 4 #ifdef CONFIG_MTD_UBI_FASTMAP 5 - static int anchor_pebs_avalible(struct rb_root *root); 5 + static int anchor_pebs_available(struct rb_root *root); 6 6 static void update_fastmap_work_fn(struct work_struct *wrk); 7 7 static struct ubi_wl_entry *find_anchor_wl_entry(struct rb_root *root); 8 8 static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi);