summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/i830_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_i2c.c b/src/i830_i2c.c
index da8f38e6..d80229d5 100644
--- a/src/i830_i2c.c
+++ b/src/i830_i2c.c
@@ -88,7 +88,7 @@ static void i830_getscl(I2CBusPtr b, int *state)
OUTREG(b->DriverPrivate.uval, GPIO_CLOCK_DIR_IN | GPIO_CLOCK_DIR_MASK);
OUTREG(b->DriverPrivate.uval, 0);
val = INREG(b->DriverPrivate.uval);
- *state = ((val & GPIO_DATA_VAL_IN) != 0);
+ *state = ((val & GPIO_CLOCK_VAL_IN) != 0);
}
static int i830_getsda(I2CBusPtr b)