notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
32x: drc: finish MAC, gen drc entry/exit (for statically alloced regs)
[picodrive.git]
/
platform
/
gp2x
/
in_gp2x.c
diff --git
a/platform/gp2x/in_gp2x.c
b/platform/gp2x/in_gp2x.c
index
818aead
..
37abeaf
100644
(file)
--- a/
platform/gp2x/in_gp2x.c
+++ b/
platform/gp2x/in_gp2x.c
@@
-55,8
+55,8
@@
static int in_gp2x_get_mmsp2_bits(void)
static int in_gp2x_get_wiz_bits(void)
{
static int in_gp2x_get_wiz_bits(void)
{
- int value = 0;
- read(gpiodev, &value, 4);
+ int
r,
value = 0;
+ r
= r
ead(gpiodev, &value, 4);
if (value & 0x02)
value |= 0x05;
if (value & 0x08)
if (value & 0x02)
value |= 0x05;
if (value & 0x08)