drm/nouveau/core/object: support lookup of specific object types
authorBen Skeggs <bskeggs@redhat.com>
Thu, 22 Dec 2016 05:22:25 +0000 (15:22 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 17 Feb 2017 05:14:56 +0000 (15:14 +1000)
commit110cccff955313c66dccd2817f62368f106d9bf2
tree247c7233b87b52a8a9f2c582c7fe5db2ab856ad8
parent05073caeedd1ea6bfc5b1ebd051f2a6694e4b26b
drm/nouveau/core/object: support lookup of specific object types

It turns out we have a nice and convenient way of looking up a specific
object type already, by using the func pointer as a key.

This will be used to remove the separate object trees for each type we
need to be able to search for.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/core/object.h
drivers/gpu/drm/nouveau/nvkm/core/object.c