diff options
author | Ivo Manca <pinkel@gmail.com> | 2016-05-20 11:31:39 +0200 |
---|---|---|
committer | Freddie Chopin <freddie.chopin@gmail.com> | 2016-05-20 21:36:39 +0100 |
commit | f630fac2e72af502d12139fdc864a01a4da7c868 (patch) | |
tree | abdaec557bfbcd749009c3099c36477d8e6c335a /src/flash/nand | |
parent | 7c0832ef7e5daca7fff363802058d01fc6da6c86 (diff) |
nand: change use_raw to boolean
Change type of use_raw to boolean. This parameter was already
assigned a boolean variable (in COMMAND_PARSE_ENABLE) and used
as a boolean.
Change-Id: I22f8308246cb25ec9ec2395599e406160410a2a8
Signed-off-by: Ivo Manca <pinkel@gmail.com>
Reviewed-on: http://openocd.zylin.com/3496
Reviewed-by: Andreas Färber <afaerber@suse.de>
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
Diffstat (limited to 'src/flash/nand')
-rw-r--r-- | src/flash/nand/core.h | 2 | ||||
-rw-r--r-- | src/flash/nand/tcl.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/nand/core.h b/src/flash/nand/core.h index 308859bd..f0e72f2c 100644 --- a/src/flash/nand/core.h +++ b/src/flash/nand/core.h @@ -68,7 +68,7 @@ struct nand_device { int address_cycles; int page_size; int erase_size; - int use_raw; + bool use_raw; int num_blocks; struct nand_block *blocks; struct nand_device *next; diff --git a/src/flash/nand/tcl.c b/src/flash/nand/tcl.c index d238e7a6..5db29ab8 100644 --- a/src/flash/nand/tcl.c +++ b/src/flash/nand/tcl.c @@ -547,7 +547,7 @@ static COMMAND_HELPER(create_nand_device, const char *bank_name, c->bus_width = 0; c->address_cycles = 0; c->page_size = 0; - c->use_raw = 0; + c->use_raw = false; c->next = NULL; retval = CALL_COMMAND_HANDLER(controller->nand_device_command, c); |