diff options
author | Florian Fainelli <florian.fainelli@telecomint.eu> | 2008-03-03 20:30:24 +0300 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-04-22 23:10:10 +0400 |
commit | 757570063a350ee3875c42a6338d29ee09f5af07 (patch) | |
tree | 2a6b9e9353312b4f69d62af5dc052e13dd009fb7 /include/linux/mtd/plat-ram.h | |
parent | ca5c23c3b8882d61bf19b7685f2244501902869f (diff) | |
download | linux-757570063a350ee3875c42a6338d29ee09f5af07.tar.xz |
[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/plat-ram.h')
-rw-r--r-- | include/linux/mtd/plat-ram.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/mtd/plat-ram.h b/include/linux/mtd/plat-ram.h index 9667863bd7e3..0e37ad07bce2 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; |