summaryrefslogtreecommitdiff
path: root/nvkm/core/subdev.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-12-03 12:56:41 +1000
committerBen Skeggs <bskeggs@redhat.com>2015-01-10 23:57:06 +1000
commit223b3b8d88982f7c7b102e66fd2fe7f3b4228eec (patch)
treeb06bd30ca2e93fede258374c34228f81d9aa8e40 /nvkm/core/subdev.c
parent8b18b785ebe9262162422930f9ddea9b5dd9d4b3 (diff)
downloadnouveau-223b3b8d88982f7c7b102e66fd2fe7f3b4228eec.tar.gz
core: rename subclass.base to subclass.superclass
Makes things a bit more readable. This is specially important now as upcoming commits are going to be gradually removing the use of macros for down-casts, in favour of compile-time checking. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'nvkm/core/subdev.c')
-rw-r--r--nvkm/core/subdev.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nvkm/core/subdev.c b/nvkm/core/subdev.c
index 2ea5568b6..28157bf57 100644
--- a/nvkm/core/subdev.c
+++ b/nvkm/core/subdev.c
@@ -38,11 +38,11 @@ nouveau_subdev_reset(struct nouveau_object *subdev)
int
nouveau_subdev_init(struct nouveau_subdev *subdev)
{
- int ret = nouveau_object_init(&subdev->base);
+ int ret = nouveau_object_init(&subdev->object);
if (ret)
return ret;
- nouveau_subdev_reset(&subdev->base);
+ nouveau_subdev_reset(&subdev->object);
return 0;
}
@@ -60,7 +60,7 @@ nouveau_subdev_fini(struct nouveau_subdev *subdev, bool suspend)
nv_mask(subdev, 0x000200, subdev->unit, subdev->unit);
}
- return nouveau_object_fini(&subdev->base, suspend);
+ return nouveau_object_fini(&subdev->object, suspend);
}
int
@@ -74,7 +74,7 @@ nouveau_subdev_destroy(struct nouveau_subdev *subdev)
{
int subidx = nv_hclass(subdev) & 0xff;
nv_device(subdev)->subdev[subidx] = NULL;
- nouveau_object_destroy(&subdev->base);
+ nouveau_object_destroy(&subdev->object);
}
void