path: root/drivers/mtd/devices
diff options
authorSteffen Trumtrar <>2019-05-03 11:33:59 +0200
committerSascha Hauer <>2019-05-08 10:52:51 +0200
commitb90c959f5cb71d53c3ecaf4ffe39424aaf346b51 (patch)
treed25e83dcc9c506f8fdd7a12dbe97a0dd28fab4a8 /drivers/mtd/devices
parent8e3318b5bc593c5366edda37cde717c4f4a36ad5 (diff)
mtd: spi-nor: provide default erase_sector implementation
Based on the Linux v4.4 patch commit c67cbb839da9cc2757eabfa128556db6a2baf160 Author: Brian Norris <> AuthorDate: Tue Nov 10 12:15:27 2015 -0800 Commit: Brian Norris <> CommitDate: Thu Nov 19 13:34:44 2015 -0800 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 <> Signed-off-by: Steffen Trumtrar <> Signed-off-by: Sascha Hauer <>
Diffstat (limited to 'drivers/mtd/devices')
0 files changed, 0 insertions, 0 deletions