mtd: spi-nor: add mtd_is_locked() support
commit5bf0e69b67a5600ea7ef178acd57606d1fc2c134
authorBrian Norris <computersforpeace@gmail.com>
Tue, 1 Sep 2015 19:57:12 +0000 (1 12:57 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 14 Oct 2015 01:22:54 +0000 (13 18:22 -0700)
tree55ed326fe52f7d4b006a07ccf68fcd8edbbf9d61
parent62593cf40b23b523b9fc9334ca61ba6c595ebb09
mtd: spi-nor: add mtd_is_locked() support

This enables ioctl(MEMISLOCKED). Status can now be reported in the
mtdinfo or flash_lock utilities found in mtd-utils.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/spi-nor/spi-nor.c
include/linux/mtd/spi-nor.h