summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/raw/nand_ids.c
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@bootlin.com>2018-09-07 00:38:48 +0200
committerMiquel Raynal <miquel.raynal@bootlin.com>2018-10-03 11:12:25 +0200
commit348d56a8c6067f3b2f1799d6f050f3be4bf5904b (patch)
treef5e81400b79a503dd6b6eae962c1398b7136e471 /drivers/mtd/nand/raw/nand_ids.c
parent462f35d3e5e805657b48c76d3e7dd1c37e0ac62c (diff)
downloadlinux-348d56a8c6067f3b2f1799d6f050f3be4bf5904b.tar.bz2
mtd: rawnand: Keep all internal stuff private
A lot of things defined in rawnand.h should not be exposed to NAND controller drivers and should only be shared by core files. Create the drivers/mtd/nand/raw/internals.h header to store such definitions, and move all private defs to this header. Also remove EXPORT_SYMBOLS() on functions that are not supposed to be exposed. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/mtd/nand/raw/nand_ids.c')
-rw-r--r--drivers/mtd/nand/raw/nand_ids.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/nand_ids.c b/drivers/mtd/nand/raw/nand_ids.c
index 5423c3bb388e..12d39ccd1cff 100644
--- a/drivers/mtd/nand/raw/nand_ids.c
+++ b/drivers/mtd/nand/raw/nand_ids.c
@@ -6,9 +6,11 @@
* published by the Free Software Foundation.
*
*/
-#include <linux/mtd/rawnand.h>
+
#include <linux/sizes.h>
+#include "internals.h"
+
#define LP_OPTIONS 0
#define LP_OPTIONS16 (LP_OPTIONS | NAND_BUSWIDTH_16)