From 4f9a9b8ebae8425eda3a71ccb782789cd3b8f6b7 Mon Sep 17 00:00:00 2001 From: Øyvind Harboe Date: Wed, 29 Dec 2010 22:07:21 +0100 Subject: warnings: use more 'const' for char * MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Øyvind Harboe --- src/flash/nand/core.h | 6 +++--- src/flash/nand/driver.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/flash/nand') 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; -- cgit v1.2.3