video: tegra: nvmap: fix comment
Alex Waterman [Thu, 5 Sep 2013 21:40:28 +0000 (14:40 -0700)]
Fix up the punctuation and clarity of the comment for
__nvmap_validate_id_locked().

Change-Id: Ie8cf12093d5b83107c7802eb1266d87333f5b683
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/271049
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>

drivers/video/tegra/nvmap/nvmap_dev.c

index 22e1964..eef0157 100644 (file)
@@ -236,8 +236,12 @@ pte_t **nvmap_vaddr_to_pte(struct nvmap_device *dev, unsigned long vaddr)
        return &(dev->ptes[bit]);
 }
 
-/* verifies that the handle ref value "ref" is a valid handle ref for the
- * file. caller must hold the file's ref_lock prior to calling this function */
+/*
+ * Verifies that the passed ID is a valid handle ID. Then the passed client's
+ * reference to the handle is returned.
+ *
+ * Note: to call this function make sure you own the client ref lock.
+ */
 struct nvmap_handle_ref *__nvmap_validate_id_locked(struct nvmap_client *c,
                                                    unsigned long id)
 {