mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-04 04:02:26 +00: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 */
|
||||
|
||||
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++)
|
||||
info->mtd = do_map_probe(*map_probes , &info->map);
|
||||
|
@ -20,8 +20,8 @@
|
||||
|
||||
struct platdata_mtd_ram {
|
||||
const char *mapname;
|
||||
const char **map_probes;
|
||||
const char **probes;
|
||||
const char * const *map_probes;
|
||||
const char * const *probes;
|
||||
struct mtd_partition *partitions;
|
||||
int nr_partitions;
|
||||
int bankwidth;
|
||||
|
Loading…
Reference in New Issue
Block a user