summaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorFlorian Fainelli <florian.fainelli@telecomint.eu>2008-03-03 18:30:24 +0100
committerDavid Woodhouse <dwmw2@infradead.org>2008-04-22 20:10:10 +0100
commit757570063a350ee3875c42a6338d29ee09f5af07 (patch)
tree2a6b9e9353312b4f69d62af5dc052e13dd009fb7 /include/linux/mtd
parentca5c23c3b8882d61bf19b7685f2244501902869f (diff)
downloadop-kernel-dev-757570063a350ee3875c42a6338d29ee09f5af07.zip
op-kernel-dev-757570063a350ee3875c42a6338d29ee09f5af07.tar.gz
[MTD] [MAPS] Extend plat-ram to support a supplied probe type
This enhances plat-ram to take a map_probes argument in the platform_data structure which allow plat-ram to support any direct-mapped device that MTD supports (jedec, cfi, amd ..) A few items are also fixed: - Don't panic if probes is 0 - Actually use the partition list that is passed in Signed-off-by: Florian Fainelli <florian.fainelli@telecomint.eu> Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/plat-ram.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/mtd/plat-ram.h b/include/linux/mtd/plat-ram.h
index 9667863..0e37ad0 100644
--- a/include/linux/mtd/plat-ram.h
+++ b/include/linux/mtd/plat-ram.h
@@ -21,8 +21,9 @@
#define PLATRAM_RW (1)
struct platdata_mtd_ram {
- char *mapname;
- char **probes;
+ const char *mapname;
+ const char **map_probes;
+ const char **probes;
struct mtd_partition *partitions;
int nr_partitions;
int bankwidth;
OpenPOWER on IntegriCloud