warnings: use more 'const' for char *

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
Øyvind Harboe
2010-12-29 22:07:21 +01:00
parent 8f93c0a3fe
commit 4f9a9b8eba
25 changed files with 30 additions and 30 deletions

View File

@@ -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);
};

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -74,7 +74,7 @@ struct flash_sector
*/
struct flash_bank
{
char *name;
const char *name;
struct target *target; /**< Target to which this bank belongs. */

View File

@@ -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

View File

@@ -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;

View File

@@ -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"},

View File

@@ -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"},

View File

@@ -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 */