/* Method to access the protection register area, present in some flash devices. The user data is one time programmable but the factory data is read only.  */
int mtd_get_fact_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, struct otp_info *buf)
/* Method to access the protection register area, present in some flash devices. The user data is one time programmable but the factory data is read only.  */
int mtd_get_fact_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen, struct otp_info *buf)
{
	if (!mtd->_get_fact_prot_info)
		return -EOPNOTSUPP;
	if (!len)
		return 0;
	return mtd->_get_fact_prot_info(mtd, len, retlen, buf);
}