diff options
author | Richard Weinberger <richard@nod.at> | 2012-05-14 11:55:52 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-20 13:25:59 -0400 |
commit | a65a0eb6d198e058687a9214683bd1c418f20d39 (patch) | |
tree | 42ecd1fa448d73da7b2bd2eec506a9abe4cd06de /include/mtd | |
parent | b36a261e8c0ab323d04db9cdd1f6bb4c273c4b32 (diff) |
UBI: remove data type hint from ubi-user.h
This finally removes the data type hint from the UBI ABI.
>From now on the "dtype" field will be ignored and must not used
anymore.
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'include/mtd')
-rw-r--r-- | include/mtd/ubi-user.h | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/include/mtd/ubi-user.h b/include/mtd/ubi-user.h index 3c4109777aff..370c750115ce 100644 --- a/include/mtd/ubi-user.h +++ b/include/mtd/ubi-user.h | |||
@@ -196,23 +196,6 @@ | |||
196 | #define UBI_MAX_RNVOL 32 | 196 | #define UBI_MAX_RNVOL 32 |
197 | 197 | ||
198 | /* | 198 | /* |
199 | * UBI data type hint constants. | ||
200 | * | ||
201 | * UBI_LONGTERM: long-term data | ||
202 | * UBI_SHORTTERM: short-term data | ||
203 | * UBI_UNKNOWN: data persistence is unknown | ||
204 | * | ||
205 | * These constants are used when data is written to UBI volumes in order to | ||
206 | * help the UBI wear-leveling unit to find more appropriate physical | ||
207 | * eraseblocks. | ||
208 | */ | ||
209 | enum { | ||
210 | UBI_LONGTERM = 1, | ||
211 | UBI_SHORTTERM = 2, | ||
212 | UBI_UNKNOWN = 3, | ||
213 | }; | ||
214 | |||
215 | /* | ||
216 | * UBI volume type constants. | 199 | * UBI volume type constants. |
217 | * | 200 | * |
218 | * @UBI_DYNAMIC_VOLUME: dynamic volume | 201 | * @UBI_DYNAMIC_VOLUME: dynamic volume |
@@ -375,25 +358,23 @@ struct ubi_rnvol_req { | |||
375 | * requests. | 358 | * requests. |
376 | * @lnum: logical eraseblock number to change | 359 | * @lnum: logical eraseblock number to change |
377 | * @bytes: how many bytes will be written to the logical eraseblock | 360 | * @bytes: how many bytes will be written to the logical eraseblock |
378 | * @dtype: data type (%UBI_LONGTERM, %UBI_SHORTTERM, %UBI_UNKNOWN) | ||
379 | * @padding: reserved for future, not used, has to be zeroed | 361 | * @padding: reserved for future, not used, has to be zeroed |
380 | */ | 362 | */ |
381 | struct ubi_leb_change_req { | 363 | struct ubi_leb_change_req { |
382 | __s32 lnum; | 364 | __s32 lnum; |
383 | __s32 bytes; | 365 | __s32 bytes; |
384 | __s8 dtype; | 366 | __s8 dtype; /* obsolete, do not use! */ |
385 | __s8 padding[7]; | 367 | __s8 padding[7]; |
386 | } __packed; | 368 | } __packed; |
387 | 369 | ||
388 | /** | 370 | /** |
389 | * struct ubi_map_req - a data structure used in map LEB requests. | 371 | * struct ubi_map_req - a data structure used in map LEB requests. |
390 | * @lnum: logical eraseblock number to unmap | 372 | * @lnum: logical eraseblock number to unmap |
391 | * @dtype: data type (%UBI_LONGTERM, %UBI_SHORTTERM, %UBI_UNKNOWN) | ||
392 | * @padding: reserved for future, not used, has to be zeroed | 373 | * @padding: reserved for future, not used, has to be zeroed |
393 | */ | 374 | */ |
394 | struct ubi_map_req { | 375 | struct ubi_map_req { |
395 | __s32 lnum; | 376 | __s32 lnum; |
396 | __s8 dtype; | 377 | __s8 dtype; /* obsolete, do not use! */ |
397 | __s8 padding[3]; | 378 | __s8 padding[3]; |
398 | } __packed; | 379 | } __packed; |
399 | 380 | ||