diff options
author | Tudor Ambarus <tudor.ambarus@microchip.com> | 2019-09-24 07:45:53 +0000 |
---|---|---|
committer | Tudor Ambarus <tudor.ambarus@microchip.com> | 2019-10-23 09:27:21 +0300 |
commit | 45397787536434648495f7b02a7e669ab8ae12f3 (patch) | |
tree | bd74c0a516ec9d4659fe162f3f336ee1cec4bdfd /drivers/mtd/spi-nor/intel-spi-platform.c | |
parent | 1a21bdfeac051c667352e8e16ee51b90e9a837c5 (diff) |
mtd: spi-nor: Introduce 'struct spi_nor_controller_ops'
Move all SPI NOR controller driver specific ops in a dedicated
structure. 'struct spi_nor' becomes lighter.
Use size_t for lengths in 'int (*write_reg)()' and 'int (*read_reg)()'.
Rename wite/read_buf to buf, the name of the functions are
suggestive enough. Constify buf in int (*write_reg). Comply with these
changes in the SPI NOR controller drivers.
Suggested-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Diffstat (limited to 'drivers/mtd/spi-nor/intel-spi-platform.c')
0 files changed, 0 insertions, 0 deletions