commit | c67cbb839da9cc2757eabfa128556db6a2baf160 | [log] [tgz] |
---|---|---|
author | Brian Norris <computersforpeace@gmail.com> | Tue Nov 10 12:15:27 2015 -0800 |
committer | Brian Norris <computersforpeace@gmail.com> | Thu Nov 19 13:34:44 2015 -0800 |
tree | 1a8f6a07ef4ec5af82bb9af9d04c309ca34bb7bb | |
parent | 1e6460abf739310fe695bafac30c2be39d18c8f9 [diff] |
mtd: spi-nor: provide default erase_sector implementation Some spi-nor drivers perform sector erase by duplicating their write_reg() command. Let's not require that the driver fill this out, and provide a default instead. Tested on m25p80.c and Medatek's MT8173 SPI NOR flash driver. Signed-off-by: Brian Norris <computersforpeace@gmail.com>