]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: spi-nor: add spi_nor_controller_ops_{read_reg, write_reg, erase}()
authorPratyush Yadav <p.yadav@ti.com>
Mon, 5 Oct 2020 15:31:25 +0000 (21:01 +0530)
committerVignesh Raghavendra <vigneshr@ti.com>
Mon, 9 Nov 2020 06:26:16 +0000 (11:56 +0530)
commitab7a9c77e4e2a5b9420be1d9108247820109a662
tree20728b2224d27b8955013f59f12d9ce263e9848b
parent5e31850a7e21d9d9c3e22bd0540140f1723cda82
mtd: spi-nor: add spi_nor_controller_ops_{read_reg, write_reg, erase}()

They are thin wrappers around
nor->controller_ops->{read_reg,write_reg,erase}(). In a future commit
DTR support will be added. These ops can not be supported by the
controller_ops hooks and these helpers will make it easier to reject
those calls.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20201005153138.6437-3-p.yadav@ti.com
drivers/mtd/spi-nor/core.c