Skip to contentSkip to conversation

nand: add containing structure for NAND platform data

patch/resend Vitaly 2 participants 3 messages Apr 30, 2007 Memory technology devices (MTD)

lore
Share & tools
lore

Vitaly

author
#0 lore raw

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(+)
#1 lore raw

Hello.

Quoted 16 lines · Vitaly

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,
		...
	},
};
Quoted 6 lines

So, please find the patch below.

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

Erm, I can't. ;-)

Quoted 3 lines

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

MBR, Sergei