]> git.openpandora.org Git - pandora-kernel.git/commitdiff
mtd: spi-nor: factor out write_enable() for erase commands
authorBrian Norris <computersforpeace@gmail.com>
Wed, 5 Nov 2014 10:29:03 +0000 (02:29 -0800)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 1 Dec 2014 08:19:03 +0000 (00:19 -0800)
write_enable() was being duplicated to both m25p80.c and fsl-quadspi.c.
But this should be handled within the spi-nor abstraction layer.

At the same time, let's add write_disable() after erasing, so we don't
leave the flash in a write-enabled state afterward.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Huang Shijie <shijie.huang@intel.com>

No differences found