aboutsummaryrefslogtreecommitdiff
path: root/hw/nand.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2010-12-03 01:39:22 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2011-04-22 14:41:43 -0500
commit51db57f7e8ef46743cb3380bfd430d3ee1877866 (patch)
tree9624e8ea86a9340bfb1d9268ff0c62b1f768b155 /hw/nand.c
parent38cb3aa9b4d5b9085ff4635415b6d3c673e2dc7d (diff)
downloadqemu-51db57f7e8ef46743cb3380bfd430d3ee1877866.zip
qemu-51db57f7e8ef46743cb3380bfd430d3ee1877866.tar.gz
qemu-51db57f7e8ef46743cb3380bfd430d3ee1877866.tar.bz2
nand: pin values are uint8_t
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'hw/nand.c')
-rw-r--r--hw/nand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/nand.c b/hw/nand.c
index f414aa1..9f978d8 100644
--- a/hw/nand.c
+++ b/hw/nand.c
@@ -52,7 +52,7 @@ struct NANDFlashState {
BlockDriverState *bdrv;
int mem_oob;
- int cle, ale, ce, wp, gnd;
+ uint8_t cle, ale, ce, wp, gnd;
uint8_t io[MAX_PAGE + MAX_OOB + 0x400];
uint8_t *ioaddr;
@@ -329,8 +329,8 @@ static int nand_load(QEMUFile *f, void *opaque, int version_id)
*
* CE, WP and R/B are active low.
*/
-void nand_setpins(NANDFlashState *s,
- int cle, int ale, int ce, int wp, int gnd)
+void nand_setpins(NANDFlashState *s, uint8_t cle, uint8_t ale,
+ uint8_t ce, uint8_t wp, uint8_t gnd)
{
s->cle = cle;
s->ale = ale;