aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv04_tv.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2012-07-17 20:00:50 -0400
committerBen Skeggs <bskeggs@redhat.com>2012-10-02 23:12:53 -0400
commit017e6e2955a8b290653aa71bd321609d0d4b1486 (patch)
treec891b865843f0d11437a7acb17063ea028239179 /drivers/gpu/drm/nouveau/nv04_tv.c
parent3863c9bc887e9638a9d905d55f6038641ece78d6 (diff)
drm/nv04/disp: kick all private state out to own header
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv04_tv.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv04_tv.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/gpu/drm/nouveau/nv04_tv.c b/drivers/gpu/drm/nouveau/nv04_tv.c
index 5927391373e9..5f5c25d77343 100644
--- a/drivers/gpu/drm/nouveau/nv04_tv.c
+++ b/drivers/gpu/drm/nouveau/nv04_tv.c
@@ -65,8 +65,7 @@ static void nv04_tv_dpms(struct drm_encoder *encoder, int mode)
65{ 65{
66 struct drm_device *dev = encoder->dev; 66 struct drm_device *dev = encoder->dev;
67 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); 67 struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder);
68 struct drm_nouveau_private *dev_priv = dev->dev_private; 68 struct nv04_mode_state *state = &nv04_display(dev)->mode_reg;
69 struct nv04_mode_state *state = &dev_priv->mode_reg;
70 uint8_t crtc1A; 69 uint8_t crtc1A;
71 70
72 NV_INFO(dev, "Setting dpms mode %d on TV encoder (output %d)\n", 71 NV_INFO(dev, "Setting dpms mode %d on TV encoder (output %d)\n",
@@ -94,8 +93,7 @@ static void nv04_tv_dpms(struct drm_encoder *encoder, int mode)
94 93
95static void nv04_tv_bind(struct drm_device *dev, int head, bool bind) 94static void nv04_tv_bind(struct drm_device *dev, int head, bool bind)
96{ 95{
97 struct drm_nouveau_private *dev_priv = dev->dev_private; 96 struct nv04_crtc_reg *state = &nv04_display(dev)->mode_reg.crtc_reg[head];
98 struct nv04_crtc_reg *state = &dev_priv->mode_reg.crtc_reg[head];
99 97
100 state->tv_setup = 0; 98 state->tv_setup = 0;
101 99
@@ -133,9 +131,8 @@ static void nv04_tv_mode_set(struct drm_encoder *encoder,
133 struct drm_display_mode *adjusted_mode) 131 struct drm_display_mode *adjusted_mode)
134{ 132{
135 struct drm_device *dev = encoder->dev; 133 struct drm_device *dev = encoder->dev;
136 struct drm_nouveau_private *dev_priv = dev->dev_private;
137 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc); 134 struct nouveau_crtc *nv_crtc = nouveau_crtc(encoder->crtc);
138 struct nv04_crtc_reg *regp = &dev_priv->mode_reg.crtc_reg[nv_crtc->index]; 135 struct nv04_crtc_reg *regp = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index];
139 136
140 regp->tv_htotal = adjusted_mode->htotal; 137 regp->tv_htotal = adjusted_mode->htotal;
141 regp->tv_vtotal = adjusted_mode->vtotal; 138 regp->tv_vtotal = adjusted_mode->vtotal;