drm/nouveau/msppp: 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/msppp/g98.c
drivers/gpu/drm/nouveau/nvkm/engine/msppp/gf100.c

index 7a602a2dec9485cdda77ac96eb3944e0614653fc..04a4d52ff7efada17ebe80ad4042acf8e08b76a2 100644 (file)
 #include <engine/msppp.h>
 #include <engine/falcon.h>
 
-struct g98_msppp_priv {
-       struct nvkm_falcon base;
-};
-
 /*******************************************************************************
  * MSPPP object classes
  ******************************************************************************/
@@ -63,15 +59,15 @@ g98_msppp_cclass = {
 static int
 g98_msppp_init(struct nvkm_object *object)
 {
-       struct g98_msppp_priv *priv = (void *)object;
+       struct nvkm_falcon *msppp = (void *)object;
        int ret;
 
-       ret = nvkm_falcon_init(&priv->base);
+       ret = nvkm_falcon_init(msppp);
        if (ret)
                return ret;
 
-       nv_wr32(priv, 0x086010, 0x0000ffd2);
-       nv_wr32(priv, 0x08601c, 0x0000fff2);
+       nv_wr32(msppp, 0x086010, 0x0000ffd2);
+       nv_wr32(msppp, 0x08601c, 0x0000fff2);
        return 0;
 }
 
@@ -80,18 +76,18 @@ g98_msppp_ctor(struct nvkm_object *parent, struct nvkm_object *engine,
               struct nvkm_oclass *oclass, void *data, u32 size,
               struct nvkm_object **pobject)
 {
-       struct g98_msppp_priv *priv;
+       struct nvkm_falcon *msppp;
        int ret;
 
        ret = nvkm_falcon_create(parent, engine, oclass, 0x086000, true,
-                                "PMSPPP", "msppp", &priv);
-       *pobject = nv_object(priv);
+                                "PMSPPP", "msppp", &msppp);
+       *pobject = nv_object(msppp);
        if (ret)
                return ret;
 
-       nv_subdev(priv)->unit = 0x00400002;
-       nv_engine(priv)->cclass = &g98_msppp_cclass;
-       nv_engine(priv)->sclass = g98_msppp_sclass;
+       nv_subdev(msppp)->unit = 0x00400002;
+       nv_engine(msppp)->cclass = &g98_msppp_cclass;
+       nv_engine(msppp)->sclass = g98_msppp_sclass;
        return 0;
 }
 
index 6047baee1f75256febbc99670a4a5d04ee5799be..5e1fe3b1a196644d4dd96416776ef07d45ba8a9b 100644 (file)
 #include <engine/msppp.h>
 #include <engine/falcon.h>
 
-struct gf100_msppp_priv {
-       struct nvkm_falcon base;
-};
-
 /*******************************************************************************
  * MSPPP object classes
  ******************************************************************************/
@@ -62,15 +58,15 @@ gf100_msppp_cclass = {
 static int
 gf100_msppp_init(struct nvkm_object *object)
 {
-       struct gf100_msppp_priv *priv = (void *)object;
+       struct nvkm_falcon *msppp = (void *)object;
        int ret;
 
-       ret = nvkm_falcon_init(&priv->base);
+       ret = nvkm_falcon_init(msppp);
        if (ret)
                return ret;
 
-       nv_wr32(priv, 0x086010, 0x0000fff2);
-       nv_wr32(priv, 0x08601c, 0x0000fff2);
+       nv_wr32(msppp, 0x086010, 0x0000fff2);
+       nv_wr32(msppp, 0x08601c, 0x0000fff2);
        return 0;
 }
 
@@ -79,19 +75,19 @@ gf100_msppp_ctor(struct nvkm_object *parent, struct nvkm_object *engine,
                 struct nvkm_oclass *oclass, void *data, u32 size,
                 struct nvkm_object **pobject)
 {
-       struct gf100_msppp_priv *priv;
+       struct nvkm_falcon *msppp;
        int ret;
 
        ret = nvkm_falcon_create(parent, engine, oclass, 0x086000, true,
-                                "PMSPPP", "msppp", &priv);
-       *pobject = nv_object(priv);
+                                "PMSPPP", "msppp", &msppp);
+       *pobject = nv_object(msppp);
        if (ret)
                return ret;
 
-       nv_subdev(priv)->unit = 0x00000002;
-       nv_subdev(priv)->intr = nvkm_falcon_intr;
-       nv_engine(priv)->cclass = &gf100_msppp_cclass;
-       nv_engine(priv)->sclass = gf100_msppp_sclass;
+       nv_subdev(msppp)->unit = 0x00000002;
+       nv_subdev(msppp)->intr = nvkm_falcon_intr;
+       nv_engine(msppp)->cclass = &gf100_msppp_cclass;
+       nv_engine(msppp)->sclass = gf100_msppp_sclass;
        return 0;
 }