summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-09-25 08:11:13 -0600
committerBin Meng <bmeng.cn@gmail.com>2019-10-08 13:51:00 +0800
commit7e45bb0867fd88ff044a71903882e6ff098dea11 (patch)
treeccf4e821a0c2ab845d04b71ec58c4d0ce59e2c57 /include/linux
parent1f338e00fa81e72380c788163fc3c63939bf5eea (diff)
downloadu-boot-7e45bb0867fd88ff044a71903882e6ff098dea11.tar.gz
u-boot-7e45bb0867fd88ff044a71903882e6ff098dea11.tar.xz
u-boot-7e45bb0867fd88ff044a71903882e6ff098dea11.zip
mtd: spi: Add 'struct spi_flash {' to the code
At present spi_flash is defined to be spi_nor which is confusing since it is not possible to find the 'spi_flash' by normal text search. Add a comment to help with this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mtd/spi-nor.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h
index 709b49d393..f9964a7664 100644
--- a/include/linux/mtd/spi-nor.h
+++ b/include/linux/mtd/spi-nor.h
@@ -246,7 +246,13 @@ enum spi_nor_option_flags {
*/
struct flash_info;
-/* TODO: Remove, once all users of spi_flash interface are moved to MTD */
+/*
+ * TODO: Remove, once all users of spi_flash interface are moved to MTD
+ *
+ * struct spi_flash {
+ * Defined below (keep this text to enable searching for spi_flash decl)
+ * }
+ */
#define spi_flash spi_nor
/**