diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2015-08-20 07:54:08 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2015-08-28 05:40:12 +0300 |
commit | b19de4f3d787947224e89447505dd3c99b304d7b (patch) | |
tree | 699cbe603a86cd30567bdde8f5a31acfbffe5a2c /drivers/gpu/drm/nouveau/nvkm/engine/mpeg/g84.c | |
parent | bfee3f3d97db88bfb732735eb4955ad3381ac758 (diff) | |
download | linux-b19de4f3d787947224e89447505dd3c99b304d7b.tar.xz |
drm/nouveau/mpeg: 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/mpeg/g84.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/engine/mpeg/g84.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/mpeg/g84.c b/drivers/gpu/drm/nouveau/nvkm/engine/mpeg/g84.c index 0df889fa2611..cdcca3ab4332 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/mpeg/g84.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/mpeg/g84.c @@ -23,10 +23,6 @@ */ #include <engine/mpeg.h> -struct g84_mpeg_priv { - struct nvkm_mpeg base; -}; - struct g84_mpeg_chan { struct nvkm_mpeg_chan base; }; @@ -67,18 +63,18 @@ g84_mpeg_ctor(struct nvkm_object *parent, struct nvkm_object *engine, struct nvkm_oclass *oclass, void *data, u32 size, struct nvkm_object **pobject) { - struct g84_mpeg_priv *priv; + struct nvkm_mpeg *mpeg; int ret; - ret = nvkm_mpeg_create(parent, engine, oclass, &priv); - *pobject = nv_object(priv); + ret = nvkm_mpeg_create(parent, engine, oclass, &mpeg); + *pobject = nv_object(mpeg); if (ret) return ret; - nv_subdev(priv)->unit = 0x00000002; - nv_subdev(priv)->intr = nv50_mpeg_intr; - nv_engine(priv)->cclass = &g84_mpeg_cclass; - nv_engine(priv)->sclass = g84_mpeg_sclass; + nv_subdev(mpeg)->unit = 0x00000002; + nv_subdev(mpeg)->intr = nv50_mpeg_intr; + nv_engine(mpeg)->cclass = &g84_mpeg_cclass; + nv_engine(mpeg)->sclass = g84_mpeg_sclass; return 0; } |