aboutsummaryrefslogtreecommitdiff
path: root/src/lpc11xx.c
diff options
context:
space:
mode:
authorAllen Ibara2014-01-10 10:59:44 -0800
committerAllen Ibara2014-01-10 13:24:25 -0800
commit487252150fbeb9c0265ad7e9a6aa4057e09b4246 (patch)
tree338f45231b822fb98cd0cfa275ef7ad32f28a5ef /src/lpc11xx.c
parentdf9c19f071b970b1a33c5ce1a99de706433e1113 (diff)
LPC: Cleanup regs_size (in bytes).
Also use sizeof() to make it clear why we multiple and divide by 4.
Diffstat (limited to 'src/lpc11xx.c')
-rw-r--r--src/lpc11xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpc11xx.c b/src/lpc11xx.c
index 9adbe2b..01afd87 100644
--- a/src/lpc11xx.c
+++ b/src/lpc11xx.c
@@ -116,7 +116,7 @@ lpc11xx_probe(struct target_s *target)
static void
lpc11x_iap_call(struct target_s *target, struct flash_param *param, unsigned param_len)
{
- uint32_t regs[target->regs_size / 4];
+ uint32_t regs[target->regs_size / sizeof(uint32_t)];
/* fill out the remainder of the parameters and copy the structure to RAM */
param->opcodes[0] = 0xbe00;