drm/nouveau/subdev: store full subdev name in struct

Much easier to store this to avoid having to reconstruct a string for a
specific subdev, taking into account whether it's instanced or not.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
This commit is contained in:
Ben Skeggs
2020-07-25 15:19:46 +10:00
parent 54d10db1f8
commit 9c28abb7db
17 changed files with 29 additions and 35 deletions

View File

@@ -104,7 +104,7 @@ nvkm_sec2_new_(const struct nvkm_sec2_fwif *fwif, struct nvkm_device *device,
sec2->func = fwif->func;
ret = nvkm_falcon_ctor(sec2->func->flcn, &sec2->engine.subdev,
nvkm_subdev_name[index], addr, &sec2->falcon);
sec2->engine.subdev.name, addr, &sec2->falcon);
if (ret)
return ret;