diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2015-08-20 04:54:07 (GMT) |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2015-08-28 02:40:11 (GMT) |
commit | d9261a68374fbeda5a180fbba926aaba29321a75 (patch) | |
tree | 88e5d90ed73d01e10d91039252886ea434d3e31c /drivers/gpu/drm/nouveau/nvkm/engine/ce/gt215.c | |
parent | d8c304b504bc2709eaec742be1b30d5e53e47449 (diff) | |
download | linux-d9261a68374fbeda5a180fbba926aaba29321a75.tar.xz |
drm/nouveau/ce: 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 'drivers/gpu/drm/nouveau/nvkm/engine/ce/gt215.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/engine/ce/gt215.c | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/ce/gt215.c b/drivers/gpu/drm/nouveau/nvkm/engine/ce/gt215.c index 72604d3..9addf43 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/ce/gt215.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/ce/gt215.c @@ -29,10 +29,6 @@ #include <core/client.h> #include <core/enum.h> -struct gt215_ce_priv { - struct nvkm_falcon base; -}; - /******************************************************************************* * Copy object classes ******************************************************************************/ @@ -117,23 +113,23 @@ gt215_ce_ctor(struct nvkm_object *parent, struct nvkm_object *engine, struct nvkm_object **pobject) { bool enable = (nv_device(parent)->chipset != 0xaf); - struct gt215_ce_priv *priv; + struct nvkm_falcon *ce; int ret; ret = nvkm_falcon_create(parent, engine, oclass, 0x104000, enable, - "PCE0", "ce0", &priv); - *pobject = nv_object(priv); + "PCE0", "ce0", &ce); + *pobject = nv_object(ce); if (ret) return ret; - nv_subdev(priv)->unit = 0x00802000; - nv_subdev(priv)->intr = gt215_ce_intr; - nv_engine(priv)->cclass = >215_ce_cclass; - nv_engine(priv)->sclass = gt215_ce_sclass; - nv_falcon(priv)->code.data = gt215_pce_code; - nv_falcon(priv)->code.size = sizeof(gt215_pce_code); - nv_falcon(priv)->data.data = gt215_pce_data; - nv_falcon(priv)->data.size = sizeof(gt215_pce_data); + nv_subdev(ce)->unit = 0x00802000; + nv_subdev(ce)->intr = gt215_ce_intr; + nv_engine(ce)->cclass = >215_ce_cclass; + nv_engine(ce)->sclass = gt215_ce_sclass; + nv_falcon(ce)->code.data = gt215_ce_code; + nv_falcon(ce)->code.size = sizeof(gt215_ce_code); + nv_falcon(ce)->data.data = gt215_ce_data; + nv_falcon(ce)->data.size = sizeof(gt215_ce_data); return 0; } |