drm/nouveau/falcon: cosmetic changes
authorBen Skeggs <bskeggs@redhat.com>
Thu, 20 Aug 2015 04:54:07 +0000 (14:54 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 28 Aug 2015 02:40:10 +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/include/nvkm/engine/falcon.h
drivers/gpu/drm/nouveau/nvkm/engine/ce/gf100.c
drivers/gpu/drm/nouveau/nvkm/engine/falcon.c

index bd38cf9130fc62c1eec8560e282ab28d28f33985..d811db7dbfd8d866e73d8992af40c5e82b3f94e8 100644 (file)
@@ -29,7 +29,7 @@ struct nvkm_falcon_data {
 #include <core/engine.h>
 
 struct nvkm_falcon {
-       struct nvkm_engine base;
+       struct nvkm_engine engine;
 
        u32 addr;
        u8  version;
@@ -57,7 +57,7 @@ struct nvkm_falcon {
        nvkm_falcon_create_((p), (e), (c), (b), (d), (i), (f),              \
                               sizeof(**r),(void **)r)
 #define nvkm_falcon_destroy(p)                                              \
-       nvkm_engine_destroy(&(p)->base)
+       nvkm_engine_destroy(&(p)->engine)
 #define nvkm_falcon_init(p) ({                                              \
        struct nvkm_falcon *falcon = (p);                                   \
        _nvkm_falcon_init(nv_object(falcon));                               \
index 2d2e549c2e3470448dbab5202583d0b93758874c..7791428fcafbdd54c83d323afc0c72f8775d881b 100644 (file)
@@ -85,7 +85,7 @@ gf100_ce_init(struct nvkm_object *object)
        if (ret)
                return ret;
 
-       nv_wo32(priv, 0x084, nv_engidx(&priv->base.base) - NVDEV_ENGINE_CE0);
+       nv_wo32(priv, 0x084, nv_engidx(&priv->base.engine) - NVDEV_ENGINE_CE0);
        return 0;
 }
 
index f6e9ae95c822498a8005e81543cff34e6271011f..90175ab62e5429b39b5d7c552a6b26f4c1232c20 100644 (file)
@@ -77,7 +77,7 @@ _nvkm_falcon_init(struct nvkm_object *object)
        u32 caps;
 
        /* enable engine, and determine its capabilities */
-       ret = nvkm_engine_init(&falcon->base);
+       ret = nvkm_engine_init(&falcon->engine);
        if (ret)
                return ret;
 
@@ -253,7 +253,7 @@ _nvkm_falcon_fini(struct nvkm_object *object, bool suspend)
        nv_mo32(falcon, 0x048, 0x00000003, 0x00000000);
        nv_wo32(falcon, 0x014, 0xffffffff);
 
-       return nvkm_engine_fini(&falcon->base, suspend);
+       return nvkm_engine_fini(&falcon->engine, suspend);
 }
 
 int