path: root/sst49lfxxxc.c
diff options
authorCarl-Daniel Hailfinger <>2012-08-25 01:17:58 +0000
committerCarl-Daniel Hailfinger <>2012-08-25 01:17:58 +0000
commit5a7cb847f096dacb0bf96b3aa909f79d76ae8204 (patch)
treeda511e990c1fdded61ee5dcefae38314c3a5a6cc /sst49lfxxxc.c
parentdd73d830f7370b5f0bbdaa0780b0ff8d6ff1776a (diff)
Make struct flashchip a field in struct flashctx instead of a complete copy
All the driver conversion work and cleanup has been done by Stefan. flashrom.c and cli_classic.c are a joint work of Stefan and Carl-Daniel. Corresponding to flashrom svn r1579. Signed-off-by: Carl-Daniel Hailfinger <> Signed-off-by: Stefan Tauner <> Acked-by: Stefan Tauner <> Acked-by: Carl-Daniel Hailfinger <>
Diffstat (limited to 'sst49lfxxxc.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/sst49lfxxxc.c b/sst49lfxxxc.c
index 37f0628..bb21559 100644
--- a/sst49lfxxxc.c
+++ b/sst49lfxxxc.c
@@ -38,7 +38,7 @@ static int write_lockbits_block_49lfxxxc(struct flashctx *flash,
static int write_lockbits_49lfxxxc(struct flashctx *flash, unsigned char bits)
chipaddr registers = flash->virtual_registers;
- unsigned int i, left = flash->total_size * 1024;
+ unsigned int i, left = flash->chip->total_size * 1024;
unsigned long address;
msg_cdbg("\nbios=0x%08lx\n", registers);
OpenPOWER on IntegriCloud