drm/radeon/kms: fix typo in atom overscan setup
authorAlex Deucher <alexdeucher@gmail.com>
Tue, 15 Mar 2011 03:18:00 +0000 (23:18 -0400)
committerDave Airlie <airlied@redhat.com>
Wed, 16 Mar 2011 01:24:12 +0000 (11:24 +1000)
Typo in the aspect scale setup.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/atombios_crtc.c

index a2199fe9fa9b696ee2866e58b31d3318fa9b75e3..3cd3234ba0af4abbe698a9e8ed02a33a2fe7eb84 100644 (file)
@@ -61,8 +61,8 @@ static void atombios_overscan_setup(struct drm_crtc *crtc,
                        args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2);
                        args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2);
                } else if (a2 > a1) {
-                       args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2);
-                       args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2);
+                       args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2);
+                       args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2);
                }
                break;
        case RMX_FULL: