warnings: use more 'const' for char *
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -74,7 +74,7 @@ struct flash_sector
|
||||
*/
|
||||
struct flash_bank
|
||||
{
|
||||
char *name;
|
||||
const char *name;
|
||||
|
||||
struct target *target; /**< Target to which this bank belongs. */
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"},
|
||||
|
||||
@@ -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"},
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user