]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/mode_object: fix documentation for object lookups.
authorDave Airlie <airlied@redhat.com>
Wed, 8 Nov 2017 23:35:04 +0000 (09:35 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 10 Nov 2017 03:50:47 +0000 (13:50 +1000)
The lease updates missed a few bits of docs, fixed up
the wrong name on the property lookup fn as well.

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_framebuffer.c
drivers/gpu/drm/drm_mode_object.c
include/drm/drm_connector.h
include/drm/drm_crtc.h
include/drm/drm_encoder.h
include/drm/drm_plane.h
include/drm/drm_property.h

index 2affe53f3fda80e5e901e51949ead238e0a8a3f8..279c1035c12dadf30794a89209084e8617058dec 100644 (file)
@@ -681,6 +681,7 @@ EXPORT_SYMBOL(drm_framebuffer_init);
 /**
  * drm_framebuffer_lookup - look up a drm framebuffer and grab a reference
  * @dev: drm device
+ * @file_priv: drm file to check for lease against.
  * @id: id of the fb object
  *
  * If successful, this grabs an additional reference to the framebuffer -
index 7c8b2698c6a71c7528b0c253bad0569d4cbc345d..ce4d2fb3281055be81e858f1b9a2707fdb7c31df 100644 (file)
@@ -151,6 +151,7 @@ struct drm_mode_object *__drm_mode_object_find(struct drm_device *dev,
 
 /**
  * drm_mode_object_find - look up a drm object with static lifetime
+ * @dev: drm device
  * @file_priv: drm file
  * @id: id of the mode object
  * @type: type of the mode object
index b4285c40e1e45bc76ec6fb83fd9f1a0c9be94463..7a714054301226ffe34de6e22b43e38bd1979ea1 100644 (file)
@@ -933,6 +933,7 @@ static inline unsigned drm_connector_index(struct drm_connector *connector)
 /**
  * drm_connector_lookup - lookup connector object
  * @dev: DRM device
+ * @file_priv: drm file to check for lease against.
  * @id: connector object id
  *
  * This function looks up the connector object specified by id
index f7fcceef46d96978fdba9b92fabe4b14fad456d4..a2d81d2907a9377716a8834f89aedb238cc607e2 100644 (file)
@@ -952,6 +952,7 @@ struct drm_crtc *drm_crtc_from_index(struct drm_device *dev, int idx);
 /**
  * drm_crtc_find - look up a CRTC object from its ID
  * @dev: DRM device
+ * @file_priv: drm file to check for lease against.
  * @id: &drm_mode_object ID
  *
  * This can be used to look up a CRTC from its userspace ID. Only used by
index 86db0da8bdcb43ff9878ffb25adbc44aa9166304..ee4cfbe63c5207bced753654687b50dd5e208651 100644 (file)
@@ -208,6 +208,7 @@ static inline bool drm_encoder_crtc_ok(struct drm_encoder *encoder,
 /**
  * drm_encoder_find - find a &drm_encoder
  * @dev: DRM device
+ * @file_priv: drm file to check for lease against.
  * @id: encoder id
  *
  * Returns the encoder with @id, NULL if it doesn't exist. Simple wrapper around
index 069c4c8ce360526390e9a2befcf47a48ff402adc..5716150792307d18f8cf276ae6ce09eacb0d6956 100644 (file)
@@ -591,6 +591,7 @@ int drm_mode_plane_set_obj_prop(struct drm_plane *plane,
 /**
  * drm_plane_find - find a &drm_plane
  * @dev: DRM device
+ * @file_priv: drm file to check for lease against.
  * @id: plane id
  *
  * Returns the plane with @id, NULL if it doesn't exist. Simple wrapper around
index 429d8218f740d3b707cd3f992d8092d4ce8626e8..8a522b4bed40dd4767286b1df3d1240ea91770fb 100644 (file)
@@ -305,8 +305,9 @@ drm_property_unreference_blob(struct drm_property_blob *blob)
 }
 
 /**
- * drm_connector_find - find property object
+ * drm_property_find - find property object
  * @dev: DRM device
+ * @file_priv: drm file to check for lease against.
  * @id: property object id
  *
  * This function looks up the property object specified by id and returns it.