diff options
author | Richard Weinberger <richard@nod.at> | 2012-01-10 11:57:03 -0500 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com> | 2012-01-15 08:08:55 -0500 |
commit | 1f4f43475f1295dc41c18684e59deea9b6d46045 (patch) | |
tree | aaaff8bce03b74a558c46c01ed37015358477acd /drivers/mtd | |
parent | 4a59c797a18917a5cf3ff7ade296b46134d91e6a (diff) |
UBI: use own macros for the layout volume
This is a minor nicification: UBI_LAYOUT_VOLUME_TYPE and
UBI_LAYOUT_VOLUME_ALIGN are currently defined but not used -
use them.
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/ubi/vtbl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/vtbl.c b/drivers/mtd/ubi/vtbl.c index 890754c9f327..17cec0c01544 100644 --- a/drivers/mtd/ubi/vtbl.c +++ b/drivers/mtd/ubi/vtbl.c | |||
@@ -322,7 +322,7 @@ retry: | |||
322 | goto out_free; | 322 | goto out_free; |
323 | } | 323 | } |
324 | 324 | ||
325 | vid_hdr->vol_type = UBI_VID_DYNAMIC; | 325 | vid_hdr->vol_type = UBI_LAYOUT_VOLUME_TYPE; |
326 | vid_hdr->vol_id = cpu_to_be32(UBI_LAYOUT_VOLUME_ID); | 326 | vid_hdr->vol_id = cpu_to_be32(UBI_LAYOUT_VOLUME_ID); |
327 | vid_hdr->compat = UBI_LAYOUT_VOLUME_COMPAT; | 327 | vid_hdr->compat = UBI_LAYOUT_VOLUME_COMPAT; |
328 | vid_hdr->data_size = vid_hdr->used_ebs = | 328 | vid_hdr->data_size = vid_hdr->used_ebs = |
@@ -632,7 +632,7 @@ static int init_volumes(struct ubi_device *ubi, const struct ubi_scan_info *si, | |||
632 | return -ENOMEM; | 632 | return -ENOMEM; |
633 | 633 | ||
634 | vol->reserved_pebs = UBI_LAYOUT_VOLUME_EBS; | 634 | vol->reserved_pebs = UBI_LAYOUT_VOLUME_EBS; |
635 | vol->alignment = 1; | 635 | vol->alignment = UBI_LAYOUT_VOLUME_ALIGN; |
636 | vol->vol_type = UBI_DYNAMIC_VOLUME; | 636 | vol->vol_type = UBI_DYNAMIC_VOLUME; |
637 | vol->name_len = sizeof(UBI_LAYOUT_VOLUME_NAME) - 1; | 637 | vol->name_len = sizeof(UBI_LAYOUT_VOLUME_NAME) - 1; |
638 | memcpy(vol->name, UBI_LAYOUT_VOLUME_NAME, vol->name_len + 1); | 638 | memcpy(vol->name, UBI_LAYOUT_VOLUME_NAME, vol->name_len + 1); |