summaryrefslogtreecommitdiff
path: root/src/flash
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash')
-rw-r--r--src/flash/mflash.h2
-rw-r--r--src/flash/nand/core.h6
-rw-r--r--src/flash/nand/driver.h2
-rw-r--r--src/flash/nor/at91sam7.c2
-rw-r--r--src/flash/nor/core.h2
-rw-r--r--src/flash/nor/driver.h2
-rw-r--r--src/flash/nor/lpc288x.c2
-rw-r--r--src/flash/nor/pic32mx.c2
-rw-r--r--src/flash/nor/stellaris.c4
-rw-r--r--src/flash/nor/tms470.c4
10 files changed, 14 insertions, 14 deletions
diff --git a/src/flash/mflash.h b/src/flash/mflash.h
index bb3cd05b..0520c5fa 100644
--- a/src/flash/mflash.h
+++ b/src/flash/mflash.h
@@ -34,7 +34,7 @@ struct mflash_gpio_num
struct mflash_gpio_drv
{
- char *name;
+ const char *name;
int (*set_gpio_to_output) (struct mflash_gpio_num gpio);
int (*set_gpio_output_val) (struct mflash_gpio_num gpio, uint8_t val);
};
diff --git a/src/flash/nand/core.h b/src/flash/nand/core.h
index a8e7466a..709c37b3 100644
--- a/src/flash/nand/core.h
+++ b/src/flash/nand/core.h
@@ -59,7 +59,7 @@ struct nand_ecclayout {
struct nand_device
{
- char *name;
+ const char *name;
struct nand_flash_controller *controller;
void *controller_priv;
struct nand_manufacturer *manufacturer;
@@ -91,12 +91,12 @@ enum
struct nand_manufacturer
{
int id;
- char *name;
+ const char *name;
};
struct nand_info
{
- char *name;
+ const char *name;
int id;
int page_size;
int chip_size;
diff --git a/src/flash/nand/driver.h b/src/flash/nand/driver.h
index fe73e906..deb41b2a 100644
--- a/src/flash/nand/driver.h
+++ b/src/flash/nand/driver.h
@@ -35,7 +35,7 @@ struct nand_device;
struct nand_flash_controller
{
/** Driver name that is used to select it from configuration files. */
- char *name;
+ const char *name;
const struct command_registration *commands;
diff --git a/src/flash/nor/at91sam7.c b/src/flash/nor/at91sam7.c
index 3fabe478..ad6ee6c3 100644
--- a/src/flash/nor/at91sam7.c
+++ b/src/flash/nor/at91sam7.c
@@ -125,7 +125,7 @@ struct at91sam7_flash_bank
uint16_t cidr_nvpsiz2;
uint16_t cidr_eproc;
uint16_t cidr_version;
- char *target_name;
+ const char *target_name;
/* flash auto-detection */
uint8_t flash_autodetection;
diff --git a/src/flash/nor/core.h b/src/flash/nor/core.h
index ff14df0a..8f7dce88 100644
--- a/src/flash/nor/core.h
+++ b/src/flash/nor/core.h
@@ -74,7 +74,7 @@ struct flash_sector
*/
struct flash_bank
{
- char *name;
+ const char *name;
struct target *target; /**< Target to which this bank belongs. */
diff --git a/src/flash/nor/driver.h b/src/flash/nor/driver.h
index cbf9c528..afd05285 100644
--- a/src/flash/nor/driver.h
+++ b/src/flash/nor/driver.h
@@ -54,7 +54,7 @@ struct flash_driver
* Gives a human-readable name of this flash driver,
* This field is used to select and initialize the driver.
*/
- char *name;
+ const char *name;
/**
* An array of driver-specific commands to register. When called
diff --git a/src/flash/nor/lpc288x.c b/src/flash/nor/lpc288x.c
index d8cecc0b..589527f7 100644
--- a/src/flash/nor/lpc288x.c
+++ b/src/flash/nor/lpc288x.c
@@ -91,7 +91,7 @@ struct lpc288x_flash_bank
/* chip id register */
uint32_t cidr;
- char * target_name;
+ const char * target_name;
uint32_t cclk;
uint32_t sector_size_break;
diff --git a/src/flash/nor/pic32mx.c b/src/flash/nor/pic32mx.c
index 4b8d0272..6a277021 100644
--- a/src/flash/nor/pic32mx.c
+++ b/src/flash/nor/pic32mx.c
@@ -99,7 +99,7 @@ struct pic32mx_flash_bank
static const struct pic32mx_devs_s {
uint8_t devid;
- char *name;
+ const char *name;
} pic32mx_devs[] = {
{0x38, "360F512L"},
{0x34, "360F256L"},
diff --git a/src/flash/nor/stellaris.c b/src/flash/nor/stellaris.c
index 12ea15b2..851cab33 100644
--- a/src/flash/nor/stellaris.c
+++ b/src/flash/nor/stellaris.c
@@ -100,7 +100,7 @@ struct stellaris_flash_bank
uint32_t dc0;
uint32_t dc1;
- char * target_name;
+ const char * target_name;
uint32_t sramsiz;
uint32_t flshsz;
@@ -125,7 +125,7 @@ struct stellaris_flash_bank
static struct {
uint32_t partno;
- char *partname;
+ const char *partname;
} StellarisParts[] =
{
{0x0001,"LM3S101"},
diff --git a/src/flash/nor/tms470.c b/src/flash/nor/tms470.c
index 4ca6cd8d..dd9ff5b4 100644
--- a/src/flash/nor/tms470.c
+++ b/src/flash/nor/tms470.c
@@ -38,7 +38,7 @@ struct tms470_flash_bank
uint32_t technology_family;
uint32_t rom_flash;
uint32_t part_number;
- char * part_name;
+ const char * part_name;
};
@@ -129,7 +129,7 @@ static int tms470_read_part_info(struct flash_bank *bank)
uint32_t technology_family;
uint32_t rom_flash;
uint32_t part_number;
- char *part_name;
+ const char *part_name;
/* we shall not rely on the caller in this test, this function allocates memory,
thus and executing the code more than once may cause memory leak */