summaryrefslogtreecommitdiff
path: root/src/radeon_atombios.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2010-10-08 16:30:36 -0400
committerAlex Deucher <alexdeucher@gmail.com>2010-10-08 16:30:36 -0400
commitacf4024aa0ef192355b2bd8281507b1c2e6b7de4 (patch)
treeac0d29f6034cf2c8984f57547fcede0df5fcd3a1 /src/radeon_atombios.c
parent74fd2b91477106a26a2d9fb4b11c885910996041 (diff)
ATOM DDC fixes for UMS
- Header size was already subtraced from table size - Only hw capable ddc pads are shared with aux
Diffstat (limited to 'src/radeon_atombios.c')
-rw-r--r--src/radeon_atombios.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/radeon_atombios.c b/src/radeon_atombios.c
index 27231cde..3da6068f 100644
--- a/src/radeon_atombios.c
+++ b/src/radeon_atombios.c
@@ -1533,8 +1533,7 @@ RADEONLookupGPIOLineForDDC(ScrnInfoPtr pScrn, uint8_t id)
return i2c;
}
- num_indices = (size - sizeof(ATOM_COMMON_TABLE_HEADER)) /
- sizeof(ATOM_GPIO_I2C_ASSIGMENT);
+ num_indices = size / sizeof(ATOM_GPIO_I2C_ASSIGMENT);
for (i = 0; i < num_indices; i++) {
gpio = &atomDataPtr->GPIO_I2C_Info->asGPIO_Info[i];
@@ -1635,7 +1634,7 @@ radeon_lookup_hpd_id(ScrnInfoPtr pScrn, ATOM_HPD_INT_RECORD *record)
return hpd;
}
- num_indices = (size - sizeof(ATOM_COMMON_TABLE_HEADER)) / sizeof(ATOM_GPIO_PIN_ASSIGNMENT);
+ num_indices = size / sizeof(ATOM_GPIO_PIN_ASSIGNMENT);
if (IS_DCE4_VARIANT)
reg = EVERGREEN_DC_GPIO_HPD_A;