mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
mtd: plat-ram: add const quilifiers
Be a bit stricter and add few more 'const' qualifiers. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
26a4734623
commit
d50dcb1d0e
@ -199,7 +199,7 @@ static int platram_probe(struct platform_device *pdev)
|
|||||||
* supplied by the platform_data struct */
|
* supplied by the platform_data struct */
|
||||||
|
|
||||||
if (pdata->map_probes) {
|
if (pdata->map_probes) {
|
||||||
const char **map_probes = pdata->map_probes;
|
const char * const *map_probes = pdata->map_probes;
|
||||||
|
|
||||||
for ( ; !info->mtd && *map_probes; map_probes++)
|
for ( ; !info->mtd && *map_probes; map_probes++)
|
||||||
info->mtd = do_map_probe(*map_probes , &info->map);
|
info->mtd = do_map_probe(*map_probes , &info->map);
|
||||||
|
@ -20,8 +20,8 @@
|
|||||||
|
|
||||||
struct platdata_mtd_ram {
|
struct platdata_mtd_ram {
|
||||||
const char *mapname;
|
const char *mapname;
|
||||||
const char **map_probes;
|
const char * const *map_probes;
|
||||||
const char **probes;
|
const char * const *probes;
|
||||||
struct mtd_partition *partitions;
|
struct mtd_partition *partitions;
|
||||||
int nr_partitions;
|
int nr_partitions;
|
||||||
int bankwidth;
|
int bankwidth;
|
||||||
|
Loading…
Reference in New Issue
Block a user