From: Ben Skeggs Date: Thu, 20 Aug 2015 04:54:08 +0000 (+1000) Subject: drm/nouveau/msppp: cosmetic changes X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fd507a53abda54697bcae2f60cfaf41932634d68;p=linux-beck.git drm/nouveau/msppp: cosmetic changes This is purely preparation for upcoming commits, there should be no code changes here. Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/msppp/g98.c b/drivers/gpu/drm/nouveau/nvkm/engine/msppp/g98.c index 7a602a2dec94..04a4d52ff7ef 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/msppp/g98.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/msppp/g98.c @@ -24,10 +24,6 @@ #include #include -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; } diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/msppp/gf100.c b/drivers/gpu/drm/nouveau/nvkm/engine/msppp/gf100.c index 6047baee1f75..5e1fe3b1a196 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/msppp/gf100.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/msppp/gf100.c @@ -24,10 +24,6 @@ #include #include -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; }