@@ -587,19 +587,19 @@ drm_property_create_blob(struct drm_device *dev, size_t length,
587587EXPORT_SYMBOL (drm_property_create_blob );
588588
589589/**
590- * drm_property_unreference_blob - Unreference a blob property
591- * @blob: Pointer to blob property
590+ * drm_property_blob_put - release a blob property reference
591+ * @blob: DRM blob property
592592 *
593- * Drop a reference on a blob property. May free the object.
593+ * Releases a reference to a blob property. May free the object.
594594 */
595- void drm_property_unreference_blob (struct drm_property_blob * blob )
595+ void drm_property_blob_put (struct drm_property_blob * blob )
596596{
597597 if (!blob )
598598 return ;
599599
600600 drm_mode_object_put (& blob -> base );
601601}
602- EXPORT_SYMBOL (drm_property_unreference_blob );
602+ EXPORT_SYMBOL (drm_property_blob_put );
603603
604604void drm_property_destroy_user_blobs (struct drm_device * dev ,
605605 struct drm_file * file_priv )
@@ -612,23 +612,23 @@ void drm_property_destroy_user_blobs(struct drm_device *dev,
612612 */
613613 list_for_each_entry_safe (blob , bt , & file_priv -> blobs , head_file ) {
614614 list_del_init (& blob -> head_file );
615- drm_property_unreference_blob (blob );
615+ drm_property_blob_put (blob );
616616 }
617617}
618618
619619/**
620- * drm_property_reference_blob - Take a reference on an existing property
621- * @blob: Pointer to blob property
620+ * drm_property_blob_get - acquire blob property reference
621+ * @blob: DRM blob property
622622 *
623- * Take a new reference on an existing blob property. Returns @blob, which
623+ * Acquires a reference to an existing blob property. Returns @blob, which
624624 * allows this to be used as a shorthand in assignments.
625625 */
626- struct drm_property_blob * drm_property_reference_blob (struct drm_property_blob * blob )
626+ struct drm_property_blob * drm_property_blob_get (struct drm_property_blob * blob )
627627{
628628 drm_mode_object_get (& blob -> base );
629629 return blob ;
630630}
631- EXPORT_SYMBOL (drm_property_reference_blob );
631+ EXPORT_SYMBOL (drm_property_blob_get );
632632
633633/**
634634 * drm_property_lookup_blob - look up a blob property and take a reference
@@ -637,7 +637,7 @@ EXPORT_SYMBOL(drm_property_reference_blob);
637637 *
638638 * If successful, this takes an additional reference to the blob property.
639639 * callers need to make sure to eventually unreference the returned property
640- * again, using @drm_property_unreference_blob .
640+ * again, using drm_property_blob_put() .
641641 *
642642 * Return:
643643 * NULL on failure, pointer to the blob on success.
@@ -712,13 +712,13 @@ int drm_property_replace_global_blob(struct drm_device *dev,
712712 goto err_created ;
713713 }
714714
715- drm_property_unreference_blob (old_blob );
715+ drm_property_blob_put (old_blob );
716716 * replace = new_blob ;
717717
718718 return 0 ;
719719
720720err_created :
721- drm_property_unreference_blob (new_blob );
721+ drm_property_blob_put (new_blob );
722722 return ret ;
723723}
724724EXPORT_SYMBOL (drm_property_replace_global_blob );
@@ -747,7 +747,7 @@ int drm_mode_getblob_ioctl(struct drm_device *dev,
747747 }
748748 out_resp -> length = blob -> length ;
749749unref :
750- drm_property_unreference_blob (blob );
750+ drm_property_blob_put (blob );
751751
752752 return ret ;
753753}
@@ -784,7 +784,7 @@ int drm_mode_createblob_ioctl(struct drm_device *dev,
784784 return 0 ;
785785
786786out_blob :
787- drm_property_unreference_blob (blob );
787+ drm_property_blob_put (blob );
788788 return ret ;
789789}
790790
@@ -823,14 +823,14 @@ int drm_mode_destroyblob_ioctl(struct drm_device *dev,
823823 mutex_unlock (& dev -> mode_config .blob_lock );
824824
825825 /* One reference from lookup, and one from the filp. */
826- drm_property_unreference_blob (blob );
827- drm_property_unreference_blob (blob );
826+ drm_property_blob_put (blob );
827+ drm_property_blob_put (blob );
828828
829829 return 0 ;
830830
831831err :
832832 mutex_unlock (& dev -> mode_config .blob_lock );
833- drm_property_unreference_blob (blob );
833+ drm_property_blob_put (blob );
834834
835835 return ret ;
836836}
@@ -908,5 +908,5 @@ void drm_property_change_valid_put(struct drm_property *property,
908908 if (drm_property_type_is (property , DRM_MODE_PROP_OBJECT )) {
909909 drm_mode_object_put (ref );
910910 } else if (drm_property_type_is (property , DRM_MODE_PROP_BLOB ))
911- drm_property_unreference_blob (obj_to_blob (ref ));
911+ drm_property_blob_put (obj_to_blob (ref ));
912912}
0 commit comments