diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-17 14:05:33 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-20 13:26:04 -0400 |
commit | 41e0cd9d4eeff0895e66cad5c70a90ba41023ea3 (patch) | |
tree | bee7cddd137ebe70ff58d2ac3c36135a4be61587 /drivers/mtd | |
parent | fbd0107f4d33be01c9fb2c630036bd66b7e3d4dc (diff) |
UBI: rename _init_scan functions
We have a couple of initialization funcntionsn left which have "_scan" suffic -
rename them:
ubi_eba_init_scan() -> ubi_eba_init()
ubi_wl_init_scan() -> ubi_wl_init()
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/ubi/build.c | 4 | ||||
-rw-r--r-- | drivers/mtd/ubi/eba.c | 6 | ||||
-rw-r--r-- | drivers/mtd/ubi/ubi.h | 4 | ||||
-rw-r--r-- | drivers/mtd/ubi/wl.c | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index 7f293b284ddb..ecedd75aae03 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c | |||
@@ -596,11 +596,11 @@ static int attach_by_scanning(struct ubi_device *ubi) | |||
596 | if (err) | 596 | if (err) |
597 | goto out_ai; | 597 | goto out_ai; |
598 | 598 | ||
599 | err = ubi_wl_init_scan(ubi, ai); | 599 | err = ubi_wl_init(ubi, ai); |
600 | if (err) | 600 | if (err) |
601 | goto out_vtbl; | 601 | goto out_vtbl; |
602 | 602 | ||
603 | err = ubi_eba_init_scan(ubi, ai); | 603 | err = ubi_eba_init(ubi, ai); |
604 | if (err) | 604 | if (err) |
605 | goto out_wl; | 605 | goto out_wl; |
606 | 606 | ||
diff --git a/drivers/mtd/ubi/eba.c b/drivers/mtd/ubi/eba.c index 2592d1cc288e..5fa726f9c1fc 100644 --- a/drivers/mtd/ubi/eba.c +++ b/drivers/mtd/ubi/eba.c | |||
@@ -1167,7 +1167,7 @@ out_unlock_leb: | |||
1167 | * print_rsvd_warning - warn about not having enough reserved PEBs. | 1167 | * print_rsvd_warning - warn about not having enough reserved PEBs. |
1168 | * @ubi: UBI device description object | 1168 | * @ubi: UBI device description object |
1169 | * | 1169 | * |
1170 | * This is a helper function for 'ubi_eba_init_scan()' which is called when UBI | 1170 | * This is a helper function for 'ubi_eba_init()' which is called when UBI |
1171 | * cannot reserve enough PEBs for bad block handling. This function makes a | 1171 | * cannot reserve enough PEBs for bad block handling. This function makes a |
1172 | * decision whether we have to print a warning or not. The algorithm is as | 1172 | * decision whether we have to print a warning or not. The algorithm is as |
1173 | * follows: | 1173 | * follows: |
@@ -1205,14 +1205,14 @@ static void print_rsvd_warning(struct ubi_device *ubi, | |||
1205 | } | 1205 | } |
1206 | 1206 | ||
1207 | /** | 1207 | /** |
1208 | * ubi_eba_init_scan - initialize the EBA sub-system using attaching information. | 1208 | * ubi_eba_init - initialize the EBA sub-system using attaching information. |
1209 | * @ubi: UBI device description object | 1209 | * @ubi: UBI device description object |
1210 | * @ai: attaching information | 1210 | * @ai: attaching information |
1211 | * | 1211 | * |
1212 | * This function returns zero in case of success and a negative error code in | 1212 | * This function returns zero in case of success and a negative error code in |
1213 | * case of failure. | 1213 | * case of failure. |
1214 | */ | 1214 | */ |
1215 | int ubi_eba_init_scan(struct ubi_device *ubi, struct ubi_attach_info *ai) | 1215 | int ubi_eba_init(struct ubi_device *ubi, struct ubi_attach_info *ai) |
1216 | { | 1216 | { |
1217 | int i, j, err, num_volumes; | 1217 | int i, j, err, num_volumes; |
1218 | struct ubi_ainf_volume *av; | 1218 | struct ubi_ainf_volume *av; |
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index faaf72933bcb..9563e1b04f19 100644 --- a/drivers/mtd/ubi/ubi.h +++ b/drivers/mtd/ubi/ubi.h | |||
@@ -529,14 +529,14 @@ int ubi_eba_atomic_leb_change(struct ubi_device *ubi, struct ubi_volume *vol, | |||
529 | int lnum, const void *buf, int len); | 529 | int lnum, const void *buf, int len); |
530 | int ubi_eba_copy_leb(struct ubi_device *ubi, int from, int to, | 530 | int ubi_eba_copy_leb(struct ubi_device *ubi, int from, int to, |
531 | struct ubi_vid_hdr *vid_hdr); | 531 | struct ubi_vid_hdr *vid_hdr); |
532 | int ubi_eba_init_scan(struct ubi_device *ubi, struct ubi_attach_info *ai); | 532 | int ubi_eba_init(struct ubi_device *ubi, struct ubi_attach_info *ai); |
533 | 533 | ||
534 | /* wl.c */ | 534 | /* wl.c */ |
535 | int ubi_wl_get_peb(struct ubi_device *ubi); | 535 | int ubi_wl_get_peb(struct ubi_device *ubi); |
536 | int ubi_wl_put_peb(struct ubi_device *ubi, int pnum, int torture); | 536 | int ubi_wl_put_peb(struct ubi_device *ubi, int pnum, int torture); |
537 | int ubi_wl_flush(struct ubi_device *ubi); | 537 | int ubi_wl_flush(struct ubi_device *ubi); |
538 | int ubi_wl_scrub_peb(struct ubi_device *ubi, int pnum); | 538 | int ubi_wl_scrub_peb(struct ubi_device *ubi, int pnum); |
539 | int ubi_wl_init_scan(struct ubi_device *ubi, struct ubi_attach_info *ai); | 539 | int ubi_wl_init(struct ubi_device *ubi, struct ubi_attach_info *ai); |
540 | void ubi_wl_close(struct ubi_device *ubi); | 540 | void ubi_wl_close(struct ubi_device *ubi); |
541 | int ubi_thread(void *u); | 541 | int ubi_thread(void *u); |
542 | 542 | ||
diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c index 72fbae1f0a5d..c143e6112357 100644 --- a/drivers/mtd/ubi/wl.c +++ b/drivers/mtd/ubi/wl.c | |||
@@ -1373,14 +1373,14 @@ static void cancel_pending(struct ubi_device *ubi) | |||
1373 | } | 1373 | } |
1374 | 1374 | ||
1375 | /** | 1375 | /** |
1376 | * ubi_wl_init_scan - initialize the WL sub-system using attaching information. | 1376 | * ubi_wl_init - initialize the WL sub-system using attaching information. |
1377 | * @ubi: UBI device description object | 1377 | * @ubi: UBI device description object |
1378 | * @ai: attaching information | 1378 | * @ai: attaching information |
1379 | * | 1379 | * |
1380 | * This function returns zero in case of success, and a negative error code in | 1380 | * This function returns zero in case of success, and a negative error code in |
1381 | * case of failure. | 1381 | * case of failure. |
1382 | */ | 1382 | */ |
1383 | int ubi_wl_init_scan(struct ubi_device *ubi, struct ubi_attach_info *ai) | 1383 | int ubi_wl_init(struct ubi_device *ubi, struct ubi_attach_info *ai) |
1384 | { | 1384 | { |
1385 | int err, i; | 1385 | int err, i; |
1386 | struct rb_node *rb1, *rb2; | 1386 | struct rb_node *rb1, *rb2; |