diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-17 07:38:34 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-20 13:26:02 -0400 |
commit | 517af48c0540e61bbe0ebbb5f463afe937b73894 (patch) | |
tree | e97c38c582bf92682a254d6f5bc823c86d0572d5 /drivers/mtd/ubi/scan.h | |
parent | a4e6042f1d073073f88e0ad6d2a7450da9a3937d (diff) |
UBI: rename sv to av
After re-naming the 'struct ubi_scan_volume' we should adjust all variables
named 'sv' to something else, because 'sv' stands for "scanning volume".
Let's rename it to 'av' which stands for "attaching volume" which is
a bit more consistent and has the same length, which makes re-naming easy.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/ubi/scan.h')
-rw-r--r-- | drivers/mtd/ubi/scan.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/mtd/ubi/scan.h b/drivers/mtd/ubi/scan.h index 0f0725e18b7f..3e19cb665a55 100644 --- a/drivers/mtd/ubi/scan.h +++ b/drivers/mtd/ubi/scan.h | |||
@@ -145,26 +145,26 @@ struct ubi_vid_hdr; | |||
145 | /* | 145 | /* |
146 | * ubi_scan_move_to_list - move a PEB from the volume tree to a list. | 146 | * ubi_scan_move_to_list - move a PEB from the volume tree to a list. |
147 | * | 147 | * |
148 | * @sv: volume attaching information | 148 | * @av: volume attaching information |
149 | * @aeb: scanning eraseblock information | 149 | * @aeb: scanning eraseblock information |
150 | * @list: the list to move to | 150 | * @list: the list to move to |
151 | */ | 151 | */ |
152 | static inline void ubi_scan_move_to_list(struct ubi_ainf_volume *sv, | 152 | static inline void ubi_scan_move_to_list(struct ubi_ainf_volume *av, |
153 | struct ubi_ainf_peb *aeb, | 153 | struct ubi_ainf_peb *aeb, |
154 | struct list_head *list) | 154 | struct list_head *list) |
155 | { | 155 | { |
156 | rb_erase(&aeb->u.rb, &sv->root); | 156 | rb_erase(&aeb->u.rb, &av->root); |
157 | list_add_tail(&aeb->u.list, list); | 157 | list_add_tail(&aeb->u.list, list); |
158 | } | 158 | } |
159 | 159 | ||
160 | int ubi_scan_add_used(struct ubi_device *ubi, struct ubi_attach_info *ai, | 160 | int ubi_scan_add_used(struct ubi_device *ubi, struct ubi_attach_info *ai, |
161 | int pnum, int ec, const struct ubi_vid_hdr *vid_hdr, | 161 | int pnum, int ec, const struct ubi_vid_hdr *vid_hdr, |
162 | int bitflips); | 162 | int bitflips); |
163 | struct ubi_ainf_volume *ubi_scan_find_sv(const struct ubi_attach_info *ai, | 163 | struct ubi_ainf_volume *ubi_scan_find_av(const struct ubi_attach_info *ai, |
164 | int vol_id); | 164 | int vol_id); |
165 | struct ubi_ainf_peb *ubi_scan_find_aeb(const struct ubi_ainf_volume *sv, | 165 | struct ubi_ainf_peb *ubi_scan_find_aeb(const struct ubi_ainf_volume *av, |
166 | int lnum); | 166 | int lnum); |
167 | void ubi_scan_rm_volume(struct ubi_attach_info *ai, struct ubi_ainf_volume *sv); | 167 | void ubi_scan_rm_volume(struct ubi_attach_info *ai, struct ubi_ainf_volume *av); |
168 | struct ubi_ainf_peb *ubi_scan_get_free_peb(struct ubi_device *ubi, | 168 | struct ubi_ainf_peb *ubi_scan_get_free_peb(struct ubi_device *ubi, |
169 | struct ubi_attach_info *ai); | 169 | struct ubi_attach_info *ai); |
170 | int ubi_scan_erase_peb(struct ubi_device *ubi, const struct ubi_attach_info *ai, | 170 | int ubi_scan_erase_peb(struct ubi_device *ubi, const struct ubi_attach_info *ai, |