diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-12-29 22:07:21 +0100 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-12-29 22:07:39 +0100 |
commit | 4f9a9b8ebae8425eda3a71ccb782789cd3b8f6b7 (patch) | |
tree | 5143ec75e22a2f648a9375632948ce09a16ee642 /src/flash/nand | |
parent | 8f93c0a3fe29313945a63b3f2154baef70acd796 (diff) | |
download | openocd_libswd-4f9a9b8ebae8425eda3a71ccb782789cd3b8f6b7.tar.gz openocd_libswd-4f9a9b8ebae8425eda3a71ccb782789cd3b8f6b7.tar.bz2 openocd_libswd-4f9a9b8ebae8425eda3a71ccb782789cd3b8f6b7.tar.xz openocd_libswd-4f9a9b8ebae8425eda3a71ccb782789cd3b8f6b7.zip |
warnings: use more 'const' for char *
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/flash/nand')
-rw-r--r-- | src/flash/nand/core.h | 6 | ||||
-rw-r--r-- | src/flash/nand/driver.h | 2 |
2 files changed, 4 insertions, 4 deletions
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; |