drm/nouveau/msvld: cosmetic changes
authorBen Skeggs <bskeggs@redhat.com>
Thu, 20 Aug 2015 04:54:08 +0000 (14:54 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 28 Aug 2015 02:40:12 +0000 (12:40 +1000)
This is purely preparation for upcoming commits, there should be no
code changes here.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/msvld/g98.c
drivers/gpu/drm/nouveau/nvkm/engine/msvld/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/msvld/gk104.c

index c8a6b4e..055bc21 100644 (file)
 #include <engine/msvld.h>
 #include <engine/falcon.h>
 
-struct g98_msvld_priv {
-       struct nvkm_falcon base;
-};
-
 /*******************************************************************************
  * MSVLD object classes
  ******************************************************************************/
@@ -64,15 +60,15 @@ g98_msvld_cclass = {
 static int
 g98_msvld_init(struct nvkm_object *object)
 {
-       struct g98_msvld_priv *priv = (void *)object;
+       struct nvkm_falcon *msvld = (void *)object;
        int ret;
 
-       ret = nvkm_falcon_init(&priv->base);
+       ret = nvkm_falcon_init(msvld);
        if (ret)
                return ret;
 
-       nv_wr32(priv, 0x084010, 0x0000ffd2);
-       nv_wr32(priv, 0x08401c, 0x0000fff2);
+       nv_wr32(msvld, 0x084010, 0x0000ffd2);
+       nv_wr32(msvld, 0x08401c, 0x0000fff2);
        return 0;
 }
 
@@ -81,18 +77,18 @@ g98_msvld_ctor(struct nvkm_object *parent, struct nvkm_object *engine,
               struct nvkm_oclass *oclass, void *data, u32 size,
               struct nvkm_object **pobject)
 {
-       struct g98_msvld_priv *priv;
+       struct nvkm_falcon *msvld;
        int ret;
 
        ret = nvkm_falcon_create(parent, engine, oclass, 0x084000, true,
-                                "PMSVLD", "msvld", &priv);
-       *pobject = nv_object(priv);
+                                "PMSVLD", "msvld", &msvld);
+       *pobject = nv_object(msvld);
        if (ret)
                return ret;
 
-       nv_subdev(priv)->unit = 0x04008000;
-       nv_engine(priv)->cclass = &g98_msvld_cclass;
-       nv_engine(priv)->sclass = g98_msvld_sclass;
+       nv_subdev(msvld)->unit = 0x04008000;
+       nv_engine(msvld)->cclass = &g98_msvld_cclass;
+       nv_engine(msvld)->sclass = g98_msvld_sclass;
        return 0;
 }
 
index b8d1e0f..0730198 100644 (file)
 #include <engine/msvld.h>
 #include <engine/falcon.h>
 
-struct gf100_msvld_priv {
-       struct nvkm_falcon base;
-};
-
 /*******************************************************************************
  * MSVLD object classes
  ******************************************************************************/
@@ -62,15 +58,15 @@ gf100_msvld_cclass = {
 static int
 gf100_msvld_init(struct nvkm_object *object)
 {
-       struct gf100_msvld_priv *priv = (void *)object;
+       struct nvkm_falcon *msvld = (void *)object;
        int ret;
 
-       ret = nvkm_falcon_init(&priv->base);
+       ret = nvkm_falcon_init(msvld);
        if (ret)
                return ret;
 
-       nv_wr32(priv, 0x084010, 0x0000fff2);
-       nv_wr32(priv, 0x08401c, 0x0000fff2);
+       nv_wr32(msvld, 0x084010, 0x0000fff2);
+       nv_wr32(msvld, 0x08401c, 0x0000fff2);
        return 0;
 }
 
@@ -79,19 +75,19 @@ gf100_msvld_ctor(struct nvkm_object *parent, struct nvkm_object *engine,
                 struct nvkm_oclass *oclass, void *data, u32 size,
                 struct nvkm_object **pobject)
 {
-       struct gf100_msvld_priv *priv;
+       struct nvkm_falcon *msvld;
        int ret;
 
        ret = nvkm_falcon_create(parent, engine, oclass, 0x084000, true,
-                                "PMSVLD", "msvld", &priv);
-       *pobject = nv_object(priv);
+                                "PMSVLD", "msvld", &msvld);
+       *pobject = nv_object(msvld);
        if (ret)
                return ret;
 
-       nv_subdev(priv)->unit = 0x00008000;
-       nv_subdev(priv)->intr = nvkm_falcon_intr;
-       nv_engine(priv)->cclass = &gf100_msvld_cclass;
-       nv_engine(priv)->sclass = gf100_msvld_sclass;
+       nv_subdev(msvld)->unit = 0x00008000;
+       nv_subdev(msvld)->intr = nvkm_falcon_intr;
+       nv_engine(msvld)->cclass = &gf100_msvld_cclass;
+       nv_engine(msvld)->sclass = gf100_msvld_sclass;
        return 0;
 }
 
index a0b0927..e19ebfd 100644 (file)
 #include <engine/msvld.h>
 #include <engine/falcon.h>
 
-struct gk104_msvld_priv {
-       struct nvkm_falcon base;
-};
-
 /*******************************************************************************
  * MSVLD object classes
  ******************************************************************************/
@@ -62,15 +58,15 @@ gk104_msvld_cclass = {
 static int
 gk104_msvld_init(struct nvkm_object *object)
 {
-       struct gk104_msvld_priv *priv = (void *)object;
+       struct nvkm_falcon *msvld = (void *)object;
        int ret;
 
-       ret = nvkm_falcon_init(&priv->base);
+       ret = nvkm_falcon_init(msvld);
        if (ret)
                return ret;
 
-       nv_wr32(priv, 0x084010, 0x0000fff2);
-       nv_wr32(priv, 0x08401c, 0x0000fff2);
+       nv_wr32(msvld, 0x084010, 0x0000fff2);
+       nv_wr32(msvld, 0x08401c, 0x0000fff2);
        return 0;
 }
 
@@ -79,19 +75,19 @@ gk104_msvld_ctor(struct nvkm_object *parent, struct nvkm_object *engine,
                 struct nvkm_oclass *oclass, void *data, u32 size,
                 struct nvkm_object **pobject)
 {
-       struct gk104_msvld_priv *priv;
+       struct nvkm_falcon *msvld;
        int ret;
 
        ret = nvkm_falcon_create(parent, engine, oclass, 0x084000, true,
-                                "PMSVLD", "msvld", &priv);
-       *pobject = nv_object(priv);
+                                "PMSVLD", "msvld", &msvld);
+       *pobject = nv_object(msvld);
        if (ret)
                return ret;
 
-       nv_subdev(priv)->unit = 0x00008000;
-       nv_subdev(priv)->intr = nvkm_falcon_intr;
-       nv_engine(priv)->cclass = &gk104_msvld_cclass;
-       nv_engine(priv)->sclass = gk104_msvld_sclass;
+       nv_subdev(msvld)->unit = 0x00008000;
+       nv_subdev(msvld)->intr = nvkm_falcon_intr;
+       nv_engine(msvld)->cclass = &gk104_msvld_cclass;
+       nv_engine(msvld)->sclass = gk104_msvld_sclass;
        return 0;
 }