mtd: add an ioctl to query the lock status of a flash sector
[firefly-linux-kernel-4.4.55.git] / include / linux / mtd / mtd.h
index 5326435a757173e7cd09ce6071b5a904518780bf..43b7d72c6116afe7081900c13e8b0235aa2898e4 100644 (file)
@@ -216,6 +216,7 @@ struct mtd_info {
        /* Chip-supported device locking */
        int (*lock) (struct mtd_info *mtd, loff_t ofs, uint64_t len);
        int (*unlock) (struct mtd_info *mtd, loff_t ofs, uint64_t len);
+       int (*is_locked) (struct mtd_info *mtd, loff_t ofs, uint64_t len);
 
        /* Power Management functions */
        int (*suspend) (struct mtd_info *mtd);