Commit c67cbb83 authored by Brian Norris's avatar Brian Norris
Browse files

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: default avatarBrian Norris <computersforpeace@gmail.com>
parent 1e6460ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment