summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_atombios.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-03-28 01:34:19 +0100
committerAlex Deucher <alexander.deucher@amd.com>2013-06-28 01:16:41 +0200
commit7a80c2c9a957b1ab056fac235140ebd6c43d9831 (patch)
tree3bf2648180c7bcb8cbf8eaf0a3173fdee1617821 /drivers/gpu/drm/radeon/radeon_atombios.c
parentdrm/radeon/dpm: add pcie gen helper function (diff)
downloadlinux-7a80c2c9a957b1ab056fac235140ebd6c43d9831.tar.xz
linux-7a80c2c9a957b1ab056fac235140ebd6c43d9831.zip
drm/radeon: fix typo in atom voltage table handling (6xx-ni)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_atombios.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_atombios.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c
index 54b8e8c1f731..5c8dbb3ae69a 100644
--- a/drivers/gpu/drm/radeon/radeon_atombios.c
+++ b/drivers/gpu/drm/radeon/radeon_atombios.c
@@ -3150,7 +3150,7 @@ radeon_atom_is_voltage_gpio(struct radeon_device *rdev,
break;
case 2:
num_indices = (size - sizeof(ATOM_COMMON_TABLE_HEADER)) /
- sizeof(ATOM_VOLTAGE_OBJECT_INFO_V2);
+ sizeof(ATOM_VOLTAGE_OBJECT_V2);
for (i = 0; i < num_indices; i++) {
if ((voltage_info->v2.asVoltageObj[i].ucVoltageType == voltage_type) &&
@@ -3231,7 +3231,7 @@ int radeon_atom_get_max_voltage(struct radeon_device *rdev,
break;
case 2:
num_indices = (size - sizeof(ATOM_COMMON_TABLE_HEADER)) /
- sizeof(ATOM_VOLTAGE_OBJECT_INFO_V2);
+ sizeof(ATOM_VOLTAGE_OBJECT_V2);
for (i = 0; i < num_indices; i++) {
if (voltage_info->v2.asVoltageObj[i].ucVoltageType == voltage_type) {
@@ -3287,7 +3287,7 @@ int radeon_atom_get_min_voltage(struct radeon_device *rdev,
break;
case 2:
num_indices = (size - sizeof(ATOM_COMMON_TABLE_HEADER)) /
- sizeof(ATOM_VOLTAGE_OBJECT_INFO_V2);
+ sizeof(ATOM_VOLTAGE_OBJECT_V2);
for (i = 0; i < num_indices; i++) {
if (voltage_info->v2.asVoltageObj[i].ucVoltageType == voltage_type) {
@@ -3406,7 +3406,7 @@ int radeon_atom_get_voltage_table(struct radeon_device *rdev,
return -EINVAL;
case 2:
num_indices = (size - sizeof(ATOM_COMMON_TABLE_HEADER)) /
- sizeof(ATOM_VOLTAGE_OBJECT_INFO_V2);
+ sizeof(ATOM_VOLTAGE_OBJECT_V2);
for (i = 0; i < num_indices; i++) {
if (voltage_info->v2.asVoltageObj[i].ucVoltageType == voltage_type) {