summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-11-24 12:17:14 +0100
committerRichard Weinberger <richard@nod.at>2018-01-18 00:18:51 +0100
commit01f196945a21b3eec37317e3bc5cf35f95f95063 (patch)
tree771736d002a28119dff1fffb114ee9c597a743a5 /drivers/mtd
parent889027bca233b422aedc2881d330e1a7c97e2315 (diff)
downloadlinux-01f196945a21b3eec37317e3bc5cf35f95f95063.tar.bz2
ubi: Fix copy/paste error in function documentation
The function documentation of leb_write_trylock is copied from leb_write_lock. Replace the function name with the correct one. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/ubi/eba.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/eba.c b/drivers/mtd/ubi/eba.c
index 388e46be6ad9..250e30fac61b 100644
--- a/drivers/mtd/ubi/eba.c
+++ b/drivers/mtd/ubi/eba.c
@@ -384,7 +384,7 @@ static int leb_write_lock(struct ubi_device *ubi, int vol_id, int lnum)
}
/**
- * leb_write_lock - lock logical eraseblock for writing.
+ * leb_write_trylock - try to lock logical eraseblock for writing.
* @ubi: UBI device description object
* @vol_id: volume ID
* @lnum: logical eraseblock number