mtd: add an ioctl to query the lock status of a flash sector
authorRichard Cochran <richardcochran@gmail.com>
Mon, 14 Jun 2010 16:10:33 +0000 (18:10 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 2 Aug 2010 08:03:41 +0000 (09:03 +0100)
commit9938424f0c4d208883cbf32083ec2bfcc220f85b
treee4f7581c7543673fe63c98f9804e934a77aeb7ef
parent1df620637fc3b252b69c92ced486b5b6b643dd1a
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>
drivers/mtd/chips/cfi_cmdset_0001.c
drivers/mtd/mtdchar.c
drivers/mtd/mtdpart.c
include/linux/mtd/mtd.h
include/mtd/mtd-abi.h