diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-05-17 13:27:22 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-05-22 11:34:53 +0200 |
commit | 78b68556a964e74fb803b08c5b2d9c6ba3ec3787 (patch) | |
tree | 2147b191085b2fef211e0b8048bf658dab178479 /include/drm/drmP.h | |
parent | drm: Miscellaneous typo fixes and documentation updates (diff) | |
download | linux-78b68556a964e74fb803b08c5b2d9c6ba3ec3787.tar.xz linux-78b68556a964e74fb803b08c5b2d9c6ba3ec3787.zip |
drm: Constify gem_vm_ops pointer
The GEM vm operations structure is passed to the VM core that stores it
in a const field. There vm operations structures can thus be const in
DRM as well.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Inki Dae <inki.dae@samsung.com>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Rob Clark <rob.clark@linaro.org>
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to '')
-rw-r--r-- | include/drm/drmP.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index e14a77c4e56b..15d91798dd31 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -941,7 +941,7 @@ struct drm_driver { uint32_t handle); /* Driver private ops for this object */ - struct vm_operations_struct *gem_vm_ops; + const struct vm_operations_struct *gem_vm_ops; int major; int minor; |