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>
This commit is contained in:

committed by
Miquel Raynal

parent
462f35d3e5
commit
348d56a8c6
@@ -11,7 +11,8 @@
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/err.h>
|
||||
#include <linux/export.h>
|
||||
#include <linux/mtd/rawnand.h>
|
||||
|
||||
#include "internals.h"
|
||||
|
||||
#define ONFI_DYN_TIMING_MAX U16_MAX
|
||||
|
||||
@@ -325,4 +326,3 @@ int onfi_fill_data_interface(struct nand_chip *chip,
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(onfi_fill_data_interface);
|
||||
|
Reference in New Issue
Block a user