diff options
author | Johan Rudholm <johan.rudholm@stericsson.com> | 2011-10-17 16:01:48 +0200 |
---|---|---|
committer | Ulf HANSSON <ulf.hansson@stericsson.com> | 2011-10-17 17:11:30 +0200 |
commit | 8f84c57b449138d2caa1d3bd68a5f258f179bf6d (patch) | |
tree | c85453a33154aa032656badfd3332b442c06b14f /include/linux/mmc/card.h | |
parent | c3d3769f9bfb6876717310192cf78377e712c02c (diff) |
mmc: boot part lock should lock all boot parts
Locking a boot partition read only should automatically make the other
boot partition read only as well. Also, the sysfs parent to the boot
partitions should have the boot_partition_ro_lock file, since an ro
lock applies to both partitions.
ST-Ericsson ID: 344197
ST-Ericsson FOSS-OUT ID: Trivial
ST-Ericsson Linux next: NA
Change-Id: I3762e840ab1d393420352521f013c5715f8188a1
Signed-off-by: Johan Rudholm <johan.rudholm@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/34249
Reviewed-by: John BECKETT <john.beckett@stericsson.com>
Reviewed-by: Ulf HANSSON <ulf.hansson@stericsson.com>
Diffstat (limited to 'include/linux/mmc/card.h')
-rw-r--r-- | include/linux/mmc/card.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h index 638fc9e103d..f56ffc70382 100644 --- a/include/linux/mmc/card.h +++ b/include/linux/mmc/card.h @@ -168,14 +168,6 @@ struct sdio_func_tuple; #define MMC_NUM_PHY_PARTITION 6 /* - * Partition area type, boot or gp - */ -enum mmc_part_area_type { - MMC_BLK_DATA_AREA_BOOT, - MMC_BLK_DATA_AREA_GP, -}; - -/* * MMC Physical partitions */ struct mmc_part { @@ -184,6 +176,9 @@ struct mmc_part { char name[DISK_NAME_LEN]; bool force_ro; /* to make boot parts RO by default */ int area_type; +#define MMC_BLK_DATA_AREA_MAIN 0 +#define MMC_BLK_DATA_AREA_BOOT 1 +#define MMC_BLK_DATA_AREA_GP 2 }; /* |