diff options
author | Channagoud Kadabi <ckadabi@codeaurora.org> | 2013-03-18 15:42:42 -0700 |
---|---|---|
committer | Channagoud Kadabi <ckadabi@codeaurora.org> | 2013-03-18 15:51:42 -0700 |
commit | c18d70f58e1b7bccb313d2f840785ae9d9005113 (patch) | |
tree | 2f2e4c94ffa3e390f96193cbc945b66b572a4465 | |
parent | 398e1a213e8c83fb3613dd70c5b6ef75f0e31f88 (diff) | |
download | lk-c18d70f58e1b7bccb313d2f840785ae9d9005113.tar.gz |
msm_shared: partition_parser: Fix structure names
Fix structure names from mmc_boot* to mmc_*.
Change-Id: If2294a614aa02149ca20cebca5dd3d74ae39d357
-rw-r--r-- | platform/msm_shared/include/partition_parser.h | 22 | ||||
-rw-r--r-- | platform/msm_shared/partition_parser.c | 22 |
2 files changed, 22 insertions, 22 deletions
diff --git a/platform/msm_shared/include/partition_parser.h b/platform/msm_shared/include/partition_parser.h index 57a92dfc..e5c1ff89 100644 --- a/platform/msm_shared/include/partition_parser.h +++ b/platform/msm_shared/include/partition_parser.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2011, The Linux Foundation. All rights reserved. +/* Copyright (c) 2011-2013, The Linux Foundation. All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -149,10 +149,10 @@ struct partition_entry { static void mbr_fill_name(struct partition_entry *partition_ent, unsigned int type); -unsigned int mmc_boot_read_gpt(struct mmc_boot_host *mmc_host, - struct mmc_boot_card *mmc_card); -unsigned int mmc_boot_read_mbr(struct mmc_boot_host *mmc_host, - struct mmc_boot_card *mmc_card); +unsigned int mmc_boot_read_gpt(struct mmc_host *mmc_host, + struct mmc_card *mmc_card); +unsigned int mmc_boot_read_mbr(struct mmc_host *mmc_host, + struct mmc_card *mmc_card); unsigned partition_get_index(const char *name); unsigned long long partition_get_size(int index); unsigned long long partition_get_offset(int index); @@ -162,8 +162,8 @@ unsigned int mbr_partition_get_type(unsigned size, unsigned char *partition, unsigned int *partition_type); unsigned int partition_get_type(unsigned size, unsigned char *partition, unsigned int *partition_type); -unsigned int partition_read_table(struct mmc_boot_host *mmc_host, - struct mmc_boot_card *mmc_card); +unsigned int partition_read_table(struct mmc_host *mmc_host, + struct mmc_card *mmc_card); unsigned int partition_parse_gpt_header(unsigned char *buffer, unsigned long long *first_usable_lba, unsigned int *partition_entry_size, @@ -171,11 +171,11 @@ unsigned int partition_parse_gpt_header(unsigned char *buffer, unsigned int *max_partition_count); unsigned int write_mbr(unsigned size, unsigned char *mbrImage, - struct mmc_boot_host *mmc_host, - struct mmc_boot_card *mmc_card); + struct mmc_host *mmc_host, + struct mmc_card *mmc_card); unsigned int write_gpt(unsigned size, unsigned char *gptImage, - struct mmc_boot_host *mmc_host, - struct mmc_boot_card *mmc_card); + struct mmc_host *mmc_host, + struct mmc_card *mmc_card); unsigned int write_partition(unsigned size, unsigned char *partition); /* For Debugging */ diff --git a/platform/msm_shared/partition_parser.c b/platform/msm_shared/partition_parser.c index 71724250..dc985db6 100644 --- a/platform/msm_shared/partition_parser.c +++ b/platform/msm_shared/partition_parser.c @@ -44,8 +44,8 @@ unsigned partition_count = 0; //TODO: Remove the dependency of mmc in these functions unsigned int -partition_read_table(struct mmc_boot_host *mmc_host, - struct mmc_boot_card *mmc_card) +partition_read_table(struct mmc_host *mmc_host, + struct mmc_card *mmc_card) { unsigned int ret; @@ -71,8 +71,8 @@ partition_read_table(struct mmc_boot_host *mmc_host, * Read MBR from MMC card and fill partition table. */ unsigned int -mmc_boot_read_mbr(struct mmc_boot_host *mmc_host, - struct mmc_boot_card *mmc_card) +mmc_boot_read_mbr(struct mmc_host *mmc_host, + struct mmc_card *mmc_card) { unsigned char buffer[BLOCK_SIZE]; unsigned int dtype; @@ -191,8 +191,8 @@ mmc_boot_read_mbr(struct mmc_boot_host *mmc_host, * Read GPT from MMC and fill partition table */ unsigned int -mmc_boot_read_gpt(struct mmc_boot_host *mmc_host, - struct mmc_boot_card *mmc_card) +mmc_boot_read_gpt(struct mmc_host *mmc_host, + struct mmc_card *mmc_card) { int ret = MMC_BOOT_E_SUCCESS; @@ -386,7 +386,7 @@ static unsigned int write_mbr_in_blocks(unsigned size, unsigned char *mbrImage) /* Write the MBR/EBR to the MMC. */ unsigned int write_mbr(unsigned size, unsigned char *mbrImage, - struct mmc_boot_host *mmc_host, struct mmc_boot_card *mmc_card) + struct mmc_host *mmc_host, struct mmc_card *mmc_card) { unsigned int ret; @@ -494,7 +494,7 @@ write_gpt_partition_array(unsigned char *header, static void patch_gpt(unsigned char *gptImage, - struct mmc_boot_card *mmc_card, + struct mmc_card *mmc_card, unsigned int array_size, unsigned int max_part_count, unsigned int part_entry_size) { @@ -571,7 +571,7 @@ patch_gpt(unsigned char *gptImage, */ unsigned int write_gpt(unsigned size, unsigned char *gptImage, - struct mmc_boot_host *mmc_host, struct mmc_boot_card *mmc_card) + struct mmc_host *mmc_host, struct mmc_card *mmc_card) { unsigned int ret = MMC_BOOT_E_INVAL; unsigned int header_size; @@ -695,8 +695,8 @@ unsigned int write_partition(unsigned size, unsigned char *partition) { unsigned int ret = MMC_BOOT_E_INVAL; unsigned int partition_type; - struct mmc_boot_host *mmc_host; - struct mmc_boot_card *mmc_card; + struct mmc_host *mmc_host; + struct mmc_card *mmc_card; if (partition == 0) { dprintf(CRITICAL, "NULL partition\n"); |