platform/msm_shared/mmc.c
static unsigned int
mmc_wp(unsigned int sector, unsigned int size, unsigned char set_clear_wp)
{
	unsigned int rc = MMC_BOOT_E_SUCCESS;

	/* Checking whether group write protection feature is available */
	if (mmc_card.csd.wp_grp_enable) {
		rc = mmc_boot_get_wp_status(&mmc_card, sector);
		rc = mmc_boot_set_clr_power_on_wp_user(&mmc_card, sector, size,
						       set_clear_wp);
		rc = mmc_boot_get_wp_status(&mmc_card, sector);
		return rc;
	} else
		return MMC_BOOT_E_FAILURE;
}
/*
 * Test Function for setting Write protect for given sector
 */
Test Function for setting Write protect for given sector
Test Function for setting Write protect for given sector
static unsigned int
mmc_wp(unsigned int sector, unsigned int size, unsigned char set_clear_wp)
{
	unsigned int rc = MMC_BOOT_E_SUCCESS;
	if (mmc_card.csd.wp_grp_enable) {
		rc = mmc_boot_get_wp_status(&mmc_card, sector);
		rc = mmc_boot_set_clr_power_on_wp_user(&mmc_card, sector, size,
						       set_clear_wp);
		rc = mmc_boot_get_wp_status(&mmc_card, sector);
		return rc;
	} else
		return MMC_BOOT_E_FAILURE;
}
static unsigned int mmc_wp ( unsigned int sector , unsigned int size , unsigned char set_clear_wp ) { unsigned int rc = MMC_BOOT_E_SUCCESS ; if ( mmc_card . csd . wp_grp_enable ) { rc = mmc_boot_get_wp_status ( & mmc_card , sector ) ; rc = mmc_boot_set_clr_power_on_wp_user ( & mmc_card , sector , size , set_clear_wp ) ; rc = mmc_boot_get_wp_status ( & mmc_card , sector ) ; return rc ; } else return MMC_BOOT_E_FAILURE ; }
Test Function for setting Write protect for given sector
Test Function for setting Write protect for given sector
/* Checking whether group write protection feature is available */