linux_dsm_epyc7002/drivers/mtd/spi-nor
Brian Norris 9c7d787508 mtd: spi-nor: convert to spi_nor_{get, set}_flash_node()
Used semantic patch with 'make coccicheck MODE=patch COCCI=script.cocci':

---8<----
virtual patch

@@
struct spi_nor b;
struct spi_nor *c;
expression d;
@@
(
-(b).flash_node = (d)
+spi_nor_set_flash_node(&b, d)
|
-(c)->flash_node = (d)
+spi_nor_set_flash_node(c, d)
)
---8<----

And a manual conversion for the one use of spi_nor_get_flash_node().

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
2015-11-11 13:45:24 -08:00
..
fsl-quadspi.c mtd: spi-nor: convert to spi_nor_{get, set}_flash_node() 2015-11-11 13:45:24 -08:00
Kconfig mtd: fsl-quadspi: allow building for other ARCHes with COMPILE_TEST 2015-10-19 09:50:45 -07:00
Makefile mtd: spi-nor: add driver for NXP SPI Flash Interface (SPIFI) 2015-08-14 11:22:55 -07:00
nxp-spifi.c mtd: spi-nor: convert to spi_nor_{get, set}_flash_node() 2015-11-11 13:45:24 -08:00
spi-nor.c mtd: spi-nor: convert to spi_nor_{get, set}_flash_node() 2015-11-11 13:45:24 -08:00