mtd: spi-nor: add forward declaration for mtd_info
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Nov 6 10:59:01 PST 2015
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=a39f1d5e4303f535840a44eee87326fd9743de7c
Commit: a39f1d5e4303f535840a44eee87326fd9743de7c
Parent: c9ec3900abf279d9276a0661c9bed2550c1f0bb5
Author: Brian Norris <computersforpeace at gmail.com>
AuthorDate: Thu Aug 13 15:46:04 2015 -0700
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Wed Sep 2 14:11:40 2015 -0700
mtd: spi-nor: add forward declaration for mtd_info
This header can't actually stand alone, as it relies on the declaration
(but not definition) of struct mtd_info. Let's fix that.
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
Tested-by: Joachim Eastwood <manabian at gmail.com>
---
include/linux/mtd/spi-nor.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h
index e540952..85a24ba 100644
--- a/include/linux/mtd/spi-nor.h
+++ b/include/linux/mtd/spi-nor.h
@@ -127,6 +127,8 @@ enum spi_nor_option_flags {
SNOR_F_USE_FSR = BIT(0),
};
+struct mtd_info;
+
/**
* struct spi_nor - Structure for defining a the SPI NOR layer
* @mtd: point to a mtd_info structure
More information about the linux-mtd-cvs
mailing list