[PATCH 09/26] spi: Tweak a few strange SPI NOR features for of-platdata

Simon Glass sjg at chromium.org
Mon Dec 28 17:26:35 CET 2020


The #define of one struct to another has been around for a while. It
confuses dtoc and makes it think that struct spi_flash does not exist.

Make a few changes to improve things while we wait for migration to be
completed:

- Move the 'struct spi_flash' to column 1 so dtoc scans it
- Remove the #define when compiling dt-platdata.c
- Update the strange mtd_get/set_of_node() functions
- Use struct spi_nor in the drivers, so dtoc sees the correct struct

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 drivers/mtd/spi/sf-uclass.c | 2 +-
 drivers/mtd/spi/sf_probe.c  | 2 +-
 include/linux/mtd/spi-nor.h | 4 +++-
 3 files changed, 5 insertions(+), 3 deletions(-)

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list