summaryrefslogtreecommitdiff
path: root/src/i830_i2c.c
diff options
context:
space:
mode:
authorhulifox008 <hulifox008@163.com>2008-01-04 02:46:54 -0800
committerEric Anholt <eric@anholt.net>2008-01-04 02:46:54 -0800
commitb434bf4029d1a405216454629bcea717c779ae5a (patch)
tree0550b545f8d54044b7852535029d76e8b8b34d7a /src/i830_i2c.c
parentf2ffc0f6e038357dda268363e52c11ada1d0b810 (diff)
Fix copy'n'paste-o in unused airlied i2c code.
Diffstat (limited to 'src/i830_i2c.c')
-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)