aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/mtd.h
diff options
context:
space:
mode:
authorRichard Cochran <richardcochran@gmail.com>2010-06-14 12:10:33 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-08-02 04:03:41 -0400
commit9938424f0c4d208883cbf32083ec2bfcc220f85b (patch)
treee4f7581c7543673fe63c98f9804e934a77aeb7ef /include/linux/mtd/mtd.h
parent1df620637fc3b252b69c92ced486b5b6b643dd1a (diff)
mtd: add an ioctl to query the lock status of a flash sector
This patchs adds a way for user space programs to find out whether a flash sector is locked. An optional driver method in the mtd_info struct provides the information. Signed-off-by: Richard Cochran <richard.cochran@omicron.at> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd/mtd.h')
-rw-r--r--include/linux/mtd/mtd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 5326435a7571..43b7d72c6116 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -216,6 +216,7 @@ struct mtd_info {
216 /* Chip-supported device locking */ 216 /* Chip-supported device locking */
217 int (*lock) (struct mtd_info *mtd, loff_t ofs, uint64_t len); 217 int (*lock) (struct mtd_info *mtd, loff_t ofs, uint64_t len);
218 int (*unlock) (struct mtd_info *mtd, loff_t ofs, uint64_t len); 218 int (*unlock) (struct mtd_info *mtd, loff_t ofs, uint64_t len);
219 int (*is_locked) (struct mtd_info *mtd, loff_t ofs, uint64_t len);
219 220
220 /* Power Management functions */ 221 /* Power Management functions */
221 int (*suspend) (struct mtd_info *mtd); 222 int (*suspend) (struct mtd_info *mtd);