summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nvkm/engine/disp/g94.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2015-08-20 07:54:07 +0300
committerBen Skeggs <bskeggs@redhat.com>2015-08-28 05:40:11 +0300
commitfd166a1832db138f22ad95eacd0879af30742f57 (patch)
treeefe505adef9a7e3ecf1bf0d67d1ddae94b381022 /drivers/gpu/drm/nouveau/nvkm/engine/disp/g94.c
parente2f1cf253e0cf5b64fa6fee439aeeda49c6f09d8 (diff)
downloadlinux-fd166a1832db138f22ad95eacd0879af30742f57.tar.xz
drm/nouveau/disp: cosmetic changes
This is purely preparation for upcoming commits, there should be no code changes here. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/engine/disp/g94.c')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/engine/disp/g94.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/disp/g94.c b/drivers/gpu/drm/nouveau/nvkm/engine/disp/g94.c
index 1ab0d0ae3cc8..9082fb71cda9 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/disp/g94.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/disp/g94.c
@@ -83,33 +83,33 @@ g94_disp_ctor(struct nvkm_object *parent, struct nvkm_object *engine,
struct nvkm_oclass *oclass, void *data, u32 size,
struct nvkm_object **pobject)
{
- struct nv50_disp_priv *priv;
+ struct nv50_disp *disp;
int ret;
ret = nvkm_disp_create(parent, engine, oclass, 2, "PDISP",
- "display", &priv);
- *pobject = nv_object(priv);
+ "display", &disp);
+ *pobject = nv_object(disp);
if (ret)
return ret;
- ret = nvkm_event_init(&nv50_disp_chan_uevent, 1, 9, &priv->uevent);
+ ret = nvkm_event_init(&nv50_disp_chan_uevent, 1, 9, &disp->uevent);
if (ret)
return ret;
- nv_engine(priv)->sclass = g94_disp_main_oclass;
- nv_engine(priv)->cclass = &nv50_disp_cclass;
- nv_subdev(priv)->intr = nv50_disp_intr;
- INIT_WORK(&priv->supervisor, nv50_disp_intr_supervisor);
- priv->sclass = g94_disp_sclass;
- priv->head.nr = 2;
- priv->dac.nr = 3;
- priv->sor.nr = 4;
- priv->pior.nr = 3;
- priv->dac.power = nv50_dac_power;
- priv->dac.sense = nv50_dac_sense;
- priv->sor.power = nv50_sor_power;
- priv->sor.hdmi = g84_hdmi_ctrl;
- priv->pior.power = nv50_pior_power;
+ nv_engine(disp)->sclass = g94_disp_main_oclass;
+ nv_engine(disp)->cclass = &nv50_disp_cclass;
+ nv_subdev(disp)->intr = nv50_disp_intr;
+ INIT_WORK(&disp->supervisor, nv50_disp_intr_supervisor);
+ disp->sclass = g94_disp_sclass;
+ disp->head.nr = 2;
+ disp->dac.nr = 3;
+ disp->sor.nr = 4;
+ disp->pior.nr = 3;
+ disp->dac.power = nv50_dac_power;
+ disp->dac.sense = nv50_dac_sense;
+ disp->sor.power = nv50_sor_power;
+ disp->sor.hdmi = g84_hdmi_ctrl;
+ disp->pior.power = nv50_pior_power;
return 0;
}