diff options
author | Brian Norris <computersforpeace@gmail.com> | 2014-11-05 13:29:03 +0300 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-12-01 11:19:03 +0300 |
commit | 05241aead9b98c28476f74e7e1c5ce480ef40ac1 (patch) | |
tree | bdd35583b62faa1896af2ab0121d0fdb92137f5e /drivers/mtd/nand/gpmi-nand/gpmi-nand.c | |
parent | 6d7604e517bc00a36ebf7ffb4973fb72823be18c (diff) | |
download | linux-05241aead9b98c28476f74e7e1c5ce480ef40ac1.tar.xz |
mtd: spi-nor: factor out write_enable() for erase commands
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>
Diffstat (limited to 'drivers/mtd/nand/gpmi-nand/gpmi-nand.c')
0 files changed, 0 insertions, 0 deletions