diff options
author | Keith Packard <keithp@keithp.com> | 2017-03-14 23:25:07 -0700 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-10-12 10:03:04 +1000 |
commit | 418da17214aca5ef5f0b6f7588905ee7df92f98f (patch) | |
tree | 8deaeb99bc4f16428c31355fb2e723515925cdc5 /include/drm/drm_mode_object.h | |
parent | bb7a9c8d712f37385a706a594d6edf6e6d2669d0 (diff) | |
download | talos-obmc-linux-418da17214aca5ef5f0b6f7588905ee7df92f98f.tar.gz talos-obmc-linux-418da17214aca5ef5f0b6f7588905ee7df92f98f.zip |
drm: Pass struct drm_file * to __drm_mode_object_find [v2]
This will allow __drm_mode_object_file to be extended to perform
access control checks based on the file in use.
v2: Also fix up vboxvideo driver in staging
[airlied: merging early as this is an API change]
Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_mode_object.h')
-rw-r--r-- | include/drm/drm_mode_object.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_mode_object.h b/include/drm/drm_mode_object.h index a767b4a30a6d..b2f920b518e3 100644 --- a/include/drm/drm_mode_object.h +++ b/include/drm/drm_mode_object.h @@ -27,6 +27,7 @@ struct drm_object_properties; struct drm_property; struct drm_device; +struct drm_file; /** * struct drm_mode_object - base structure for modeset objects @@ -113,6 +114,7 @@ struct drm_object_properties { } struct drm_mode_object *drm_mode_object_find(struct drm_device *dev, + struct drm_file *file_priv, uint32_t id, uint32_t type); void drm_mode_object_get(struct drm_mode_object *obj); void drm_mode_object_put(struct drm_mode_object *obj); |