diff options
author | Richard Weinberger <richard@nod.at> | 2012-05-14 11:55:51 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-20 13:25:59 -0400 |
commit | b36a261e8c0ab323d04db9cdd1f6bb4c273c4b32 (patch) | |
tree | 00c90c5fa556f335338f4f61c808d4dfe502bb74 /include/linux/mtd | |
parent | 0964f6a27b3574d9210c59ec883cbb3fff78a78d (diff) |
UBI: Kill data type hint
We do not need this feature and to our shame it even was not working
and there was a bug found very recently.
-- Artem Bityutskiy
Without the data type hint UBI2 (fastmap) will be easier to implement.
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r-- | include/linux/mtd/ubi.h | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/include/linux/mtd/ubi.h b/include/linux/mtd/ubi.h index db4836bed514..9838dce7e235 100644 --- a/include/linux/mtd/ubi.h +++ b/include/linux/mtd/ubi.h | |||
@@ -208,12 +208,12 @@ void ubi_close_volume(struct ubi_volume_desc *desc); | |||
208 | int ubi_leb_read(struct ubi_volume_desc *desc, int lnum, char *buf, int offset, | 208 | int ubi_leb_read(struct ubi_volume_desc *desc, int lnum, char *buf, int offset, |
209 | int len, int check); | 209 | int len, int check); |
210 | int ubi_leb_write(struct ubi_volume_desc *desc, int lnum, const void *buf, | 210 | int ubi_leb_write(struct ubi_volume_desc *desc, int lnum, const void *buf, |
211 | int offset, int len, int dtype); | 211 | int offset, int len); |
212 | int ubi_leb_change(struct ubi_volume_desc *desc, int lnum, const void *buf, | 212 | int ubi_leb_change(struct ubi_volume_desc *desc, int lnum, const void *buf, |
213 | int len, int dtype); | 213 | int len); |
214 | int ubi_leb_erase(struct ubi_volume_desc *desc, int lnum); | 214 | int ubi_leb_erase(struct ubi_volume_desc *desc, int lnum); |
215 | int ubi_leb_unmap(struct ubi_volume_desc *desc, int lnum); | 215 | int ubi_leb_unmap(struct ubi_volume_desc *desc, int lnum); |
216 | int ubi_leb_map(struct ubi_volume_desc *desc, int lnum, int dtype); | 216 | int ubi_leb_map(struct ubi_volume_desc *desc, int lnum); |
217 | int ubi_is_mapped(struct ubi_volume_desc *desc, int lnum); | 217 | int ubi_is_mapped(struct ubi_volume_desc *desc, int lnum); |
218 | int ubi_sync(int ubi_num); | 218 | int ubi_sync(int ubi_num); |
219 | 219 | ||
@@ -226,25 +226,4 @@ static inline int ubi_read(struct ubi_volume_desc *desc, int lnum, char *buf, | |||
226 | { | 226 | { |
227 | return ubi_leb_read(desc, lnum, buf, offset, len, 0); | 227 | return ubi_leb_read(desc, lnum, buf, offset, len, 0); |
228 | } | 228 | } |
229 | |||
230 | /* | ||
231 | * This function is the same as the 'ubi_leb_write()' functions, but it does | ||
232 | * not have the data type argument. | ||
233 | */ | ||
234 | static inline int ubi_write(struct ubi_volume_desc *desc, int lnum, | ||
235 | const void *buf, int offset, int len) | ||
236 | { | ||
237 | return ubi_leb_write(desc, lnum, buf, offset, len, UBI_UNKNOWN); | ||
238 | } | ||
239 | |||
240 | /* | ||
241 | * This function is the same as the 'ubi_leb_change()' functions, but it does | ||
242 | * not have the data type argument. | ||
243 | */ | ||
244 | static inline int ubi_change(struct ubi_volume_desc *desc, int lnum, | ||
245 | const void *buf, int len) | ||
246 | { | ||
247 | return ubi_leb_change(desc, lnum, buf, len, UBI_UNKNOWN); | ||
248 | } | ||
249 | |||
250 | #endif /* !__LINUX_UBI_H__ */ | 229 | #endif /* !__LINUX_UBI_H__ */ |