diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-17 08:33:20 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-20 13:26:03 -0400 |
commit | dcd85fdd1040259f0053137f252321faec0a259f (patch) | |
tree | 31409c118426f741bf2681a0223b7f5336ff1bd1 | |
parent | 3561188ac29580bdc0e8db3cf3c029b87cf2c6cd (diff) |
UBI: rename ubi_scan_find_av
The old name is not logical anymore - rename it to 'ubi_find_av()'.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
-rw-r--r-- | drivers/mtd/ubi/eba.c | 2 | ||||
-rw-r--r-- | drivers/mtd/ubi/scan.c | 6 | ||||
-rw-r--r-- | drivers/mtd/ubi/scan.h | 4 | ||||
-rw-r--r-- | drivers/mtd/ubi/vtbl.c | 6 |
4 files changed, 9 insertions, 9 deletions
diff --git a/drivers/mtd/ubi/eba.c b/drivers/mtd/ubi/eba.c index 572281a9a63c..6f7f27566524 100644 --- a/drivers/mtd/ubi/eba.c +++ b/drivers/mtd/ubi/eba.c | |||
@@ -1246,7 +1246,7 @@ int ubi_eba_init_scan(struct ubi_device *ubi, struct ubi_attach_info *ai) | |||
1246 | for (j = 0; j < vol->reserved_pebs; j++) | 1246 | for (j = 0; j < vol->reserved_pebs; j++) |
1247 | vol->eba_tbl[j] = UBI_LEB_UNMAPPED; | 1247 | vol->eba_tbl[j] = UBI_LEB_UNMAPPED; |
1248 | 1248 | ||
1249 | av = ubi_scan_find_av(ai, idx2vol_id(ubi, i)); | 1249 | av = ubi_find_av(ai, idx2vol_id(ubi, i)); |
1250 | if (!av) | 1250 | if (!av) |
1251 | continue; | 1251 | continue; |
1252 | 1252 | ||
diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c index 366506253502..767b857f3054 100644 --- a/drivers/mtd/ubi/scan.c +++ b/drivers/mtd/ubi/scan.c | |||
@@ -585,15 +585,15 @@ int ubi_add_to_av(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum, | |||
585 | } | 585 | } |
586 | 586 | ||
587 | /** | 587 | /** |
588 | * ubi_scan_find_av - find volume in the attaching information. | 588 | * ubi_find_av - find volume in the attaching information. |
589 | * @ai: attaching information | 589 | * @ai: attaching information |
590 | * @vol_id: the requested volume ID | 590 | * @vol_id: the requested volume ID |
591 | * | 591 | * |
592 | * This function returns a pointer to the volume description or %NULL if there | 592 | * This function returns a pointer to the volume description or %NULL if there |
593 | * are no data about this volume in the attaching information. | 593 | * are no data about this volume in the attaching information. |
594 | */ | 594 | */ |
595 | struct ubi_ainf_volume *ubi_scan_find_av(const struct ubi_attach_info *ai, | 595 | struct ubi_ainf_volume *ubi_find_av(const struct ubi_attach_info *ai, |
596 | int vol_id) | 596 | int vol_id) |
597 | { | 597 | { |
598 | struct ubi_ainf_volume *av; | 598 | struct ubi_ainf_volume *av; |
599 | struct rb_node *p = ai->volumes.rb_node; | 599 | struct rb_node *p = ai->volumes.rb_node; |
diff --git a/drivers/mtd/ubi/scan.h b/drivers/mtd/ubi/scan.h index 5a9ecc0abdd2..b1eeb0bda0e7 100644 --- a/drivers/mtd/ubi/scan.h +++ b/drivers/mtd/ubi/scan.h | |||
@@ -159,8 +159,8 @@ static inline void ubi_scan_move_to_list(struct ubi_ainf_volume *av, | |||
159 | 159 | ||
160 | int ubi_add_to_av(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum, | 160 | int ubi_add_to_av(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum, |
161 | int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips); | 161 | int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips); |
162 | struct ubi_ainf_volume *ubi_scan_find_av(const struct ubi_attach_info *ai, | 162 | struct ubi_ainf_volume *ubi_find_av(const struct ubi_attach_info *ai, |
163 | int vol_id); | 163 | int vol_id); |
164 | void ubi_scan_rm_volume(struct ubi_attach_info *ai, struct ubi_ainf_volume *av); | 164 | void ubi_scan_rm_volume(struct ubi_attach_info *ai, struct ubi_ainf_volume *av); |
165 | struct ubi_ainf_peb *ubi_scan_get_free_peb(struct ubi_device *ubi, | 165 | struct ubi_ainf_peb *ubi_scan_get_free_peb(struct ubi_device *ubi, |
166 | struct ubi_attach_info *ai); | 166 | struct ubi_attach_info *ai); |
diff --git a/drivers/mtd/ubi/vtbl.c b/drivers/mtd/ubi/vtbl.c index 5decd587188b..0c8c17282c81 100644 --- a/drivers/mtd/ubi/vtbl.c +++ b/drivers/mtd/ubi/vtbl.c | |||
@@ -591,7 +591,7 @@ static int init_volumes(struct ubi_device *ubi, | |||
591 | } | 591 | } |
592 | 592 | ||
593 | /* Static volumes only */ | 593 | /* Static volumes only */ |
594 | av = ubi_scan_find_av(ai, i); | 594 | av = ubi_find_av(ai, i); |
595 | if (!av) { | 595 | if (!av) { |
596 | /* | 596 | /* |
597 | * No eraseblocks belonging to this volume found. We | 597 | * No eraseblocks belonging to this volume found. We |
@@ -734,7 +734,7 @@ static int check_scanning_info(const struct ubi_device *ubi, | |||
734 | for (i = 0; i < ubi->vtbl_slots + UBI_INT_VOL_COUNT; i++) { | 734 | for (i = 0; i < ubi->vtbl_slots + UBI_INT_VOL_COUNT; i++) { |
735 | cond_resched(); | 735 | cond_resched(); |
736 | 736 | ||
737 | av = ubi_scan_find_av(ai, i); | 737 | av = ubi_find_av(ai, i); |
738 | vol = ubi->volumes[i]; | 738 | vol = ubi->volumes[i]; |
739 | if (!vol) { | 739 | if (!vol) { |
740 | if (av) | 740 | if (av) |
@@ -794,7 +794,7 @@ int ubi_read_volume_table(struct ubi_device *ubi, struct ubi_attach_info *ai) | |||
794 | ubi->vtbl_size = ubi->vtbl_slots * UBI_VTBL_RECORD_SIZE; | 794 | ubi->vtbl_size = ubi->vtbl_slots * UBI_VTBL_RECORD_SIZE; |
795 | ubi->vtbl_size = ALIGN(ubi->vtbl_size, ubi->min_io_size); | 795 | ubi->vtbl_size = ALIGN(ubi->vtbl_size, ubi->min_io_size); |
796 | 796 | ||
797 | av = ubi_scan_find_av(ai, UBI_LAYOUT_VOLUME_ID); | 797 | av = ubi_find_av(ai, UBI_LAYOUT_VOLUME_ID); |
798 | if (!av) { | 798 | if (!av) { |
799 | /* | 799 | /* |
800 | * No logical eraseblocks belonging to the layout volume were | 800 | * No logical eraseblocks belonging to the layout volume were |