diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2015-08-20 07:54:18 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2015-08-28 05:40:39 +0300 |
commit | 0e29998a89a6254f5ca9f78167f9ce790d01da45 (patch) | |
tree | 78a26bef78b4e80919773c0f1d0b7efb950cdcb6 /drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.h | |
parent | 2a9f847f5d43d15c0401d050cdd77fb4cbe7da06 (diff) | |
download | linux-0e29998a89a6254f5ca9f78167f9ce790d01da45.tar.xz |
drm/nouveau/device: convert ctrl class to new-style nvkm_object
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.h b/drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.h new file mode 100644 index 000000000000..20249d8e444d --- /dev/null +++ b/drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.h @@ -0,0 +1,12 @@ +#ifndef __NVKM_DEVICE_CTRL_H__ +#define __NVKM_DEVICE_CTRL_H__ +#define nvkm_control(p) container_of((p), struct nvkm_control, object) +#include <core/device.h> + +struct nvkm_control { + struct nvkm_object object; + struct nvkm_device *device; +}; + +extern const struct nvkm_device_oclass nvkm_control_oclass; +#endif |