drm/radeon: fix typo in atom voltage table handling (si+)
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Mar 2013 00:37:25 +0000 (20:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2013 23:16:42 +0000 (19:16 -0400)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_atombios.c

index 5c8dbb3ae69ac6a3605790bcb369b70b5661a36f..e36144630a7d895617ef873228278649abf457ba 100644 (file)
@@ -3168,7 +3168,7 @@ radeon_atom_is_voltage_gpio(struct radeon_device *rdev,
                        switch (crev) {
                        case 1:
                                num_indices = (size - sizeof(ATOM_COMMON_TABLE_HEADER)) /
-                                       sizeof(ATOM_VOLTAGE_OBJECT_INFO_V3_1);
+                                       sizeof(ATOM_VOLTAGE_OBJECT_V3);
 
                                for (i = 0; i < num_indices; i++) {
                                        if ((voltage_info->v3.asVoltageObj[i].asGpioVoltageObj.sHeader.ucVoltageType ==
@@ -3439,7 +3439,7 @@ int radeon_atom_get_voltage_table(struct radeon_device *rdev,
                        switch (crev) {
                        case 1:
                                num_indices = (size - sizeof(ATOM_COMMON_TABLE_HEADER)) /
-                                       sizeof(ATOM_VOLTAGE_OBJECT_INFO_V3_1);
+                                       sizeof(ATOM_VOLTAGE_OBJECT_V3);
 
                                for (i = 0; i < num_indices; i++) {
                                        if ((voltage_info->v3.asVoltageObj[i].asGpioVoltageObj.sHeader.ucVoltageType ==