mtd: spi-nor: factor out replace-able flash_{lock,unlock}
authorBrian Norris <computersforpeace@gmail.com>
Fri, 13 Mar 2015 07:38:39 +0000 (00:38 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 27 Mar 2015 17:37:38 +0000 (10:37 -0700)
commit8cc7f33aadc8fb37b5a3f4c46f5fa83748a92a01
treeeae708435c1462bed2bf4d460b36642adf69223b
parent73c8aaf43629e83541332f66fd08699e20ea87bc
mtd: spi-nor: factor out replace-able flash_{lock,unlock}

Flash lock/unlock is a flash-specific operations. Factor out a callback
for it to more readily support other vendors.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Tested-by: VIET NGA DAO <vndao@altera.com>
drivers/mtd/spi-nor/spi-nor.c
include/linux/mtd/spi-nor.h