From 8864710cd5ca23a365fb35e5ddc3a8b8368b658f Mon Sep 17 00:00:00 2001
From: Sean Nelson <audiohacked@gmail.com>
Date: Mon, 22 Mar 2010 06:57:02 +0000
Subject: [PATCH] Fix a few typos from the last commit

Corresponding to flashrom svn r966.

Signed-off-by: Sean Nelson <audiohacked@gmail.com>
Acked-by: Sean Nelson <audiohacked@gmail.com>
---
 82802ab.c     | 4 ++--
 chipdrivers.h | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/82802ab.c b/82802ab.c
index 3aa76b4..68054e2 100644
--- a/82802ab.c
+++ b/82802ab.c
@@ -206,10 +206,10 @@ int write_82802ab(struct flashchip *flash, uint8_t *buf)
 	return 0;
 }
 
-int unlock_28f004s5(struct flashrom *flash)
+int unlock_28f004s5(struct flashchip *flash)
 {
 	chipaddr bios = flash->virtual_memory;
-	uint8_t mcfg, bcfg, need_unlock = 0, can_unlock = 0;
+	uint8_t mcfg, bcfg, need_unlock = 0, can_unlock = 0, i;
 
 	/* Clear status register */
 	chip_writeb(0x50, bios);
diff --git a/chipdrivers.h b/chipdrivers.h
index d8a5bcc..c96f445 100644
--- a/chipdrivers.h
+++ b/chipdrivers.h
@@ -62,6 +62,7 @@ int write_82802ab(struct flashchip *flash, uint8_t *buf);
 void print_status_82802ab(uint8_t status);
 void write_page_82802ab(chipaddr bios, uint8_t *src, chipaddr dst, int page_size);
 int unlock_82802ab(struct flashchip *flash);
+int unlock_28f004s5(struct flashchip *flash);
 
 /* jedec.c */
 uint8_t oddparity(uint8_t val);
-- 
GitLab