Commit f39cf6c7 authored by Artem Bityutskiy's avatar Artem Bityutskiy Committed by David Woodhouse

mtd: physmap: add const qualifiers

Be a bit stricter and add few more 'const' qualifiers.
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent d50dcb1d
...@@ -87,21 +87,18 @@ static void physmap_set_vpp(struct map_info *map, int state) ...@@ -87,21 +87,18 @@ static void physmap_set_vpp(struct map_info *map, int state)
spin_unlock_irqrestore(&info->vpp_lock, flags); spin_unlock_irqrestore(&info->vpp_lock, flags);
} }
static const char *rom_probe_types[] = { static const char * const rom_probe_types[] = {
"cfi_probe", "cfi_probe", "jedec_probe", "qinfo_probe", "map_rom", NULL };
"jedec_probe",
"qinfo_probe", static const char * const part_probe_types[] = {
"map_rom", "cmdlinepart", "RedBoot", "afs", NULL };
NULL };
static const char *part_probe_types[] = { "cmdlinepart", "RedBoot", "afs",
NULL };
static int physmap_flash_probe(struct platform_device *dev) static int physmap_flash_probe(struct platform_device *dev)
{ {
struct physmap_flash_data *physmap_data; struct physmap_flash_data *physmap_data;
struct physmap_flash_info *info; struct physmap_flash_info *info;
const char **probe_type; const char * const *probe_type;
const char **part_types; const char * const *part_types;
int err = 0; int err = 0;
int i; int i;
int devices_found = 0; int devices_found = 0;
......
...@@ -30,7 +30,7 @@ struct physmap_flash_data { ...@@ -30,7 +30,7 @@ struct physmap_flash_data {
unsigned int pfow_base; unsigned int pfow_base;
char *probe_type; char *probe_type;
struct mtd_partition *parts; struct mtd_partition *parts;
const char **part_probe_types; const char * const *part_probe_types;
}; };
#endif /* __LINUX_MTD_PHYSMAP__ */ #endif /* __LINUX_MTD_PHYSMAP__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment