platform/msm_shared/mmc.c
static unsigned int
mmc_boot_get_wp_status(struct mmc_boot_card *card, unsigned int sector)
{
	unsigned int rc = MMC_BOOT_E_SUCCESS;
	memset(wp_status_buf, 0, 8);

	rc = mmc_boot_read_reg(card, 8, CMD31_SEND_WRITE_PROT_TYPE, sector,
			       (unsigned int *)wp_status_buf);
	return rc;
}
/*
 * Function to get Write Protect status of the given sector
 */
Function to get Write Protect status of the given sector
Function to get Write Protect status of the given sector
static unsigned int
mmc_boot_get_wp_status(struct mmc_boot_card *card, unsigned int sector)
{
	unsigned int rc = MMC_BOOT_E_SUCCESS;
	memset(wp_status_buf, 0, 8);
	rc = mmc_boot_read_reg(card, 8, CMD31_SEND_WRITE_PROT_TYPE, sector,
			       (unsigned int *)wp_status_buf);
	return rc;
}
static unsigned int mmc_boot_get_wp_status ( struct mmc_boot_card * card , unsigned int sector ) { unsigned int rc = MMC_BOOT_E_SUCCESS ; memset ( wp_status_buf , 0 , 8 ) ; rc = mmc_boot_read_reg ( card , 8 , CMD31_SEND_WRITE_PROT_TYPE , sector , ( unsigned int * ) wp_status_buf ) ; return rc ; }
Function to get Write Protect status of the given sector
Function to get Write Protect status of the given sector