[patch/resend] nand: add containing structure for NAND platform data

Vitaly vitalywool at gmail.com
Mon Apr 30 06:22:20 EDT 2007


In order to make it more convenient to pass platform-specific NAND stuff 
to a generic driver which is hopefully to come out next, I've introduced
a container structure for chip-specific and controller-specific data.
I'd expect that use cases in platform code will be like

struct platform_nand_data nand_data = {
	...
};

struct platform_device nand_device = {
	...
	.dev = {
		.platform_data = &nand_data,
		...
	},
};

So, please find the patch below.

 include/linux/mtd/nand.h |   10 ++++++++++
 1 files changed, 10 insertions(+)

Signed-off-by: Vitaly Wool <vitalywool at gmail.com> <mailto:vitalywool at gmail.com>





More information about the linux-mtd mailing list