aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_atombios.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2014-11-07 11:34:57 -0500
committerAlex Deucher <alexander.deucher@amd.com>2014-11-12 11:56:36 -0500
commit727b3d25be4116315f4488ee1918ec64927b3eb4 (patch)
tree819cca76edc2b28bd48fe5b10975897cbdb9616a /drivers/gpu/drm/radeon/radeon_atombios.c
parentdrm/radeon: export radeon_atombios_lookup_gpio (diff)
downloadlinux-dev-727b3d25be4116315f4488ee1918ec64927b3eb4.tar.xz
linux-dev-727b3d25be4116315f4488ee1918ec64927b3eb4.zip
drm/radeon: store the gpio shift as well
We need this in the dpm code. 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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c
index 7ef3d9e53af5..dbc94f300297 100644
--- a/drivers/gpu/drm/radeon/radeon_atombios.c
+++ b/drivers/gpu/drm/radeon/radeon_atombios.c
@@ -221,6 +221,7 @@ struct radeon_gpio_rec radeon_atombios_lookup_gpio(struct radeon_device *rdev,
if (id == pin->ucGPIO_ID) {
gpio.id = pin->ucGPIO_ID;
gpio.reg = le16_to_cpu(pin->usGpioPin_AIndex) * 4;
+ gpio.shift = pin->ucGpioPinBitShift;
gpio.mask = (1 << pin->ucGpioPinBitShift);
gpio.valid = true;
break;