Skip to content

Commit

Permalink
mtd: plat-ram: add const quilifiers
Browse files Browse the repository at this point in the history
Be a bit stricter and add few more 'const' qualifiers.

Signed-off-by: Artem Bityutskiy <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
  • Loading branch information
dedekind authored and David Woodhouse committed Apr 5, 2013
1 parent 26a4734 commit d50dcb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/mtd/maps/plat-ram.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions include/linux/mtd/plat-ram.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d50dcb1

Please sign in to comment.