summaryrefslogtreecommitdiff
path: root/drm/nouveau/nvkm/subdev/fb/nv04.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2015-08-20 14:54:06 +1000
committerBen Skeggs <bskeggs@redhat.com>2015-08-28 12:37:27 +1000
commit9d8e8873c8c9d321e888e4750ed941a1aa2a2efe (patch)
tree743e82426076afd7de863a681d27c1f43d2f142e /drm/nouveau/nvkm/subdev/fb/nv04.c
parenta54164adcd6779d248c82648cf04a8d2c6a3f6f3 (diff)
downloadnouveau-9d8e8873c8c9d321e888e4750ed941a1aa2a2efe.tar.gz
fb: 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 'drm/nouveau/nvkm/subdev/fb/nv04.c')
-rw-r--r--drm/nouveau/nvkm/subdev/fb/nv04.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drm/nouveau/nvkm/subdev/fb/nv04.c b/drm/nouveau/nvkm/subdev/fb/nv04.c
index c063dec7d..9e55308c9 100644
--- a/drm/nouveau/nvkm/subdev/fb/nv04.c
+++ b/drm/nouveau/nvkm/subdev/fb/nv04.c
@@ -25,7 +25,7 @@
#include "regsnv04.h"
bool
-nv04_fb_memtype_valid(struct nvkm_fb *pfb, u32 tile_flags)
+nv04_fb_memtype_valid(struct nvkm_fb *fb, u32 tile_flags)
{
if (!(tile_flags & 0xff00))
return true;
@@ -36,10 +36,10 @@ nv04_fb_memtype_valid(struct nvkm_fb *pfb, u32 tile_flags)
static int
nv04_fb_init(struct nvkm_object *object)
{
- struct nv04_fb_priv *priv = (void *)object;
+ struct nvkm_fb *fb = (void *)object;
int ret;
- ret = nvkm_fb_init(&priv->base);
+ ret = nvkm_fb_init(fb);
if (ret)
return ret;
@@ -47,7 +47,7 @@ nv04_fb_init(struct nvkm_object *object)
* nvidia reading PFB_CFG_0, then writing back its original value.
* (which was 0x701114 in this case)
*/
- nv_wr32(priv, NV04_PFB_CFG0, 0x1114);
+ nv_wr32(fb, NV04_PFB_CFG0, 0x1114);
return 0;
}
@@ -57,19 +57,19 @@ nv04_fb_ctor(struct nvkm_object *parent, struct nvkm_object *engine,
struct nvkm_object **pobject)
{
struct nv04_fb_impl *impl = (void *)oclass;
- struct nv04_fb_priv *priv;
+ struct nvkm_fb *fb;
int ret;
- ret = nvkm_fb_create(parent, engine, oclass, &priv);
- *pobject = nv_object(priv);
+ ret = nvkm_fb_create(parent, engine, oclass, &fb);
+ *pobject = nv_object(fb);
if (ret)
return ret;
- priv->base.tile.regions = impl->tile.regions;
- priv->base.tile.init = impl->tile.init;
- priv->base.tile.comp = impl->tile.comp;
- priv->base.tile.fini = impl->tile.fini;
- priv->base.tile.prog = impl->tile.prog;
+ fb->tile.regions = impl->tile.regions;
+ fb->tile.init = impl->tile.init;
+ fb->tile.comp = impl->tile.comp;
+ fb->tile.fini = impl->tile.fini;
+ fb->tile.prog = impl->tile.prog;
return 0;
}