Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 889027bc authored by Sascha Hauer's avatar Sascha Hauer Committed by Richard Weinberger
Browse files

ubi: Fastmap: Fix typo



Fix misspelling of 'available' in function name.

Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent b3e73839
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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);
+1 −1
Original line number Diff line number Diff line
@@ -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);