flash: rename CamelCase symbols
Each driver is almost self-contained, with no cross dependency. Changing symbol names in one drive does not impact the other. Change-Id: Ic09f844f922a35cf0a9dc23fcd61d035b38308b3 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/6299 Tested-by: jenkins Reviewed-by: Marc Schink <dev@zapb.de>
This commit is contained in:
@@ -151,7 +151,7 @@ struct numicro_cpu_type {
|
||||
{NUMICRO_CONFIG_BASE, 1024} }
|
||||
|
||||
|
||||
static const struct numicro_cpu_type NuMicroParts[] = {
|
||||
static const struct numicro_cpu_type numicro_parts[] = {
|
||||
/*PART NO*/ /*PART ID*/ /*Banks*/
|
||||
/* NUC100 Version B */
|
||||
{"NUC100LD2BN", 0x10010004, NUMICRO_BANKS_NUC100(64*1024)},
|
||||
@@ -1648,9 +1648,9 @@ static int numicro_get_cpu_type(struct target *target, const struct numicro_cpu_
|
||||
|
||||
LOG_INFO("Device ID: 0x%08" PRIx32 "", part_id);
|
||||
/* search part numbers */
|
||||
for (size_t i = 0; i < ARRAY_SIZE(NuMicroParts); i++) {
|
||||
if (part_id == NuMicroParts[i].partid) {
|
||||
*cpu = &NuMicroParts[i];
|
||||
for (size_t i = 0; i < ARRAY_SIZE(numicro_parts); i++) {
|
||||
if (part_id == numicro_parts[i].partid) {
|
||||
*cpu = &numicro_parts[i];
|
||||
LOG_INFO("Device Name: %s", (*cpu)->partname);
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user