diff options
author | hulifox008 <hulifox008@163.com> | 2008-01-04 02:46:54 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-01-04 02:46:54 -0800 |
commit | b434bf4029d1a405216454629bcea717c779ae5a (patch) | |
tree | 0550b545f8d54044b7852535029d76e8b8b34d7a /src/i830_i2c.c | |
parent | f2ffc0f6e038357dda268363e52c11ada1d0b810 (diff) |
Fix copy'n'paste-o in unused airlied i2c code.
Diffstat (limited to 'src/i830_i2c.c')
-rw-r--r-- | src/i830_i2c.c | 2 |
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) |