aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdcore.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/mtdcore.c')
-rw-r--r--drivers/mtd/mtdcore.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
index 34c0b16aed5c..0a7d77e65335 100644
--- a/drivers/mtd/mtdcore.c
+++ b/drivers/mtd/mtdcore.c
@@ -883,14 +883,14 @@ EXPORT_SYMBOL_GPL(mtd_read_oob);
883 * devices. The user data is one time programmable but the factory data is read 883 * devices. The user data is one time programmable but the factory data is read
884 * only. 884 * only.
885 */ 885 */
886int mtd_get_fact_prot_info(struct mtd_info *mtd, struct otp_info *buf, 886int mtd_get_fact_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen,
887 size_t len) 887 struct otp_info *buf)
888{ 888{
889 if (!mtd->_get_fact_prot_info) 889 if (!mtd->_get_fact_prot_info)
890 return -EOPNOTSUPP; 890 return -EOPNOTSUPP;
891 if (!len) 891 if (!len)
892 return 0; 892 return 0;
893 return mtd->_get_fact_prot_info(mtd, buf, len); 893 return mtd->_get_fact_prot_info(mtd, len, retlen, buf);
894} 894}
895EXPORT_SYMBOL_GPL(mtd_get_fact_prot_info); 895EXPORT_SYMBOL_GPL(mtd_get_fact_prot_info);
896 896
@@ -906,14 +906,14 @@ int mtd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len,
906} 906}
907EXPORT_SYMBOL_GPL(mtd_read_fact_prot_reg); 907EXPORT_SYMBOL_GPL(mtd_read_fact_prot_reg);
908 908
909int mtd_get_user_prot_info(struct mtd_info *mtd, struct otp_info *buf, 909int mtd_get_user_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen,
910 size_t len) 910 struct otp_info *buf)
911{ 911{
912 if (!mtd->_get_user_prot_info) 912 if (!mtd->_get_user_prot_info)
913 return -EOPNOTSUPP; 913 return -EOPNOTSUPP;
914 if (!len) 914 if (!len)
915 return 0; 915 return 0;
916 return mtd->_get_user_prot_info(mtd, buf, len); 916 return mtd->_get_user_prot_info(mtd, len, retlen, buf);
917} 917}
918EXPORT_SYMBOL_GPL(mtd_get_user_prot_info); 918EXPORT_SYMBOL_GPL(mtd_get_user_prot_info);
919 919