summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/include
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2020-02-11 08:34:58 +0100
committerBen Skeggs <bskeggs@redhat.com>2020-05-22 03:13:48 +0200
commitf02ca8425a5c49a3751ca0045f1ec14b3c84a05f (patch)
treec0f9f9f3e49a0a6cb289efe9fe3f8ea98976b4f2 /drivers/gpu/drm/nouveau/include
parentdrm/nouveau/kms: Support NVIDIA format modifiers (diff)
downloadlinux-f02ca8425a5c49a3751ca0045f1ec14b3c84a05f.tar.xz
linux-f02ca8425a5c49a3751ca0045f1ec14b3c84a05f.zip
drm/nouveau/core: add nvkm_subdev_new_() for bare subdevs
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/include')
-rw-r--r--drivers/gpu/drm/nouveau/include/nvkm/core/subdev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/include/nvkm/core/subdev.h b/drivers/gpu/drm/nouveau/include/nvkm/core/subdev.h
index 1218f28c14ba..76288c682e9e 100644
--- a/drivers/gpu/drm/nouveau/include/nvkm/core/subdev.h
+++ b/drivers/gpu/drm/nouveau/include/nvkm/core/subdev.h
@@ -24,6 +24,8 @@ struct nvkm_subdev_func {
};
extern const char *nvkm_subdev_name[NVKM_SUBDEV_NR];
+int nvkm_subdev_new_(const struct nvkm_subdev_func *, struct nvkm_device *,
+ int index, struct nvkm_subdev **);
void nvkm_subdev_ctor(const struct nvkm_subdev_func *, struct nvkm_device *,
int index, struct nvkm_subdev *);
void nvkm_subdev_del(struct nvkm_subdev **);