summaryrefslogtreecommitdiff
path: root/w39.c
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2011-11-23 09:13:48 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2011-11-23 09:13:48 +0000
commit1d88a5d5cec09dea52815c0b2cb272927db4b6fa (patch)
tree2ea0b12abf9dd3483246423752239b88c6d7942e /w39.c
parentd66720a9d6602e7c906e81d0fb9c00340de11946 (diff)
downloadflashrom-1d88a5d5cec09dea52815c0b2cb272927db4b6fa.tar.gz
Unsignify lengths and addresses in chip functions and structs
Push those changes forward where needed to prevent new sign conversion warnings where possible. Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1470 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'w39.c')
-rw-r--r--w39.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/w39.c b/w39.c
index 2e9aa4f..a2c1014 100644
--- a/w39.c
+++ b/w39.c
@@ -21,7 +21,7 @@
#include "flash.h"
-static int printlock_w39_fwh_block(struct flashchip *flash, int offset)
+static int printlock_w39_fwh_block(struct flashchip *flash, unsigned int offset)
{
chipaddr wrprotect = flash->virtual_registers + offset + 2;
uint8_t locking;
@@ -59,7 +59,7 @@ static int printlock_w39_fwh_block(struct flashchip *flash, int offset)
return (locking & ((1 << 2) | (1 << 0))) ? -1 : 0;
}
-static int unlock_w39_fwh_block(struct flashchip *flash, int offset)
+static int unlock_w39_fwh_block(struct flashchip *flash, unsigned int offset)
{
chipaddr wrprotect = flash->virtual_registers + offset + 2;
uint8_t locking;
@@ -80,7 +80,7 @@ static int unlock_w39_fwh_block(struct flashchip *flash, int offset)
return 0;
}
-static uint8_t w39_idmode_readb(struct flashchip *flash, int offset)
+static uint8_t w39_idmode_readb(struct flashchip *flash, unsigned int offset)
{
chipaddr bios = flash->virtual_memory;
uint8_t val;
@@ -127,7 +127,7 @@ static int printlock_w39_bootblock_64k16k(uint8_t lock)
return 0;
}
-static int printlock_w39_common(struct flashchip *flash, int offset)
+static int printlock_w39_common(struct flashchip *flash, unsigned int offset)
{
uint8_t lock;
@@ -138,7 +138,7 @@ static int printlock_w39_common(struct flashchip *flash, int offset)
static int printlock_w39_fwh(struct flashchip *flash)
{
- int i, total_size = flash->total_size * 1024;
+ unsigned int i, total_size = flash->total_size * 1024;
int ret = 0;
/* Print lock status of the complete chip */
@@ -150,7 +150,7 @@ static int printlock_w39_fwh(struct flashchip *flash)
static int unlock_w39_fwh(struct flashchip *flash)
{
- int i, total_size = flash->total_size * 1024;
+ unsigned int i, total_size = flash->total_size * 1024;
/* Unlock the complete chip */
for (i = 0; i < total_size; i += flash->page_size)