Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/vmwgfx: cleanup comments

Remove second 'should'

Spelling replacements
aqcuire -> acquire
applcations -> applications
assumings -> assumes
begining -> beginning
commited -> committed
contol -> control
inbetween -> in between
resorces -> resources
succesful -> successful
successfule -> successful

Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Zack Rusin <zackr@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220730135704.2889434-1-trix@redhat.com

authored by

Tom Rix and committed by
Zack Rusin
05436815 ffb6260b

+14 -14
+1 -1
drivers/gpu/drm/vmwgfx/device_include/vm_basic_types.h
··· 121 121 * 122 122 * Since the MKSGuestStatInfoEntry structures contain userlevel 123 123 * pointers, the InstanceDescriptor also contains pointers to the 124 - * begining of these sections allowing the host side code to correctly 124 + * beginning of these sections allowing the host side code to correctly 125 125 * interpret the pointers. 126 126 * 127 127 * Because the host side code never acknowledges anything back to the
+2 -2
drivers/gpu/drm/vmwgfx/ttm_object.h
··· 96 96 * 97 97 * This struct is intended to be used as a base struct for objects that 98 98 * are visible to user-space. It provides a global name, race-safe 99 - * access and refcounting, minimal access contol and hooks for unref actions. 99 + * access and refcounting, minimal access control and hooks for unref actions. 100 100 */ 101 101 102 102 struct ttm_base_object { ··· 138 138 * 139 139 * @tfile: Pointer to a struct ttm_object_file. 140 140 * @base: The struct ttm_base_object to initialize. 141 - * @shareable: This object is shareable with other applcations. 141 + * @shareable: This object is shareable with other applications. 142 142 * (different @tfile pointers.) 143 143 * @type: The object type. 144 144 * @refcount_release: See the struct ttm_base_object description.
+1 -1
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c
··· 727 727 * Any persistent usage of the object requires a refcount to be taken using 728 728 * ttm_bo_reference_unless_doomed(). Iff this function returns successfully it 729 729 * needs to be paired with vmw_user_bo_noref_release() and no sleeping- 730 - * or scheduling functions may be called inbetween these function calls. 730 + * or scheduling functions may be called in between these function calls. 731 731 * 732 732 * Return: A struct vmw_buffer_object pointer if successful or negative 733 733 * error pointer on failure.
+4 -4
drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c
··· 36 36 * @res: Refcounted pointer to a struct vmw_resource. 37 37 * @hash: Hash entry for the manager hash table. 38 38 * @head: List head used either by the staging list or the manager list 39 - * of commited resources. 39 + * of committed resources. 40 40 * @state: Staging state of this resource entry. 41 41 * @man: Pointer to a resource manager for this entry. 42 42 */ ··· 51 51 /** 52 52 * struct vmw_cmdbuf_res_manager - Command buffer resource manager. 53 53 * 54 - * @resources: Hash table containing staged and commited command buffer 54 + * @resources: Hash table containing staged and committed command buffer 55 55 * resources 56 - * @list: List of commited command buffer resources. 56 + * @list: List of committed command buffer resources. 57 57 * @dev_priv: Pointer to a device private structure. 58 58 * 59 59 * @resources and @list are protected by the cmdbuf mutex for now. ··· 118 118 * This function commits a list of command buffer resource 119 119 * additions or removals. 120 120 * It is typically called when the execbuf ioctl call triggering these 121 - * actions has commited the fifo contents to the device. 121 + * actions has committed the fifo contents to the device. 122 122 */ 123 123 void vmw_cmdbuf_res_commit(struct list_head *list) 124 124 {
+1 -1
drivers/gpu/drm/vmwgfx/vmwgfx_kms.h
··· 70 70 * 71 71 * Some surface resource or buffer object need some extra cmd submission 72 72 * like update GB image for proxy surface and define a GMRFB for screen 73 - * object. That should should be done here as this callback will be 73 + * object. That should be done here as this callback will be 74 74 * called after FIFO allocation with the address of command buufer. 75 75 * 76 76 * This callback is optional.
+4 -4
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
··· 525 525 * for a resource and in that case, allocate 526 526 * one, reserve and validate it. 527 527 * 528 - * @ticket: The ww aqcquire context to use, or NULL if trylocking. 528 + * @ticket: The ww acquire context to use, or NULL if trylocking. 529 529 * @res: The resource for which to allocate a backup buffer. 530 530 * @interruptible: Whether any sleeps during allocation should be 531 531 * performed while interruptible. ··· 686 686 * @intr: Perform waits interruptible if possible. 687 687 * @dirtying: Pending GPU operation will dirty the resource 688 688 * 689 - * On succesful return, any backup DMA buffer pointed to by @res->backup will 689 + * On successful return, any backup DMA buffer pointed to by @res->backup will 690 690 * be reserved and validated. 691 691 * On hardware resource shortage, this function will repeatedly evict 692 692 * resources of the same type until the validation succeeds. ··· 804 804 * @dx_query_mob: Buffer containing the DX query MOB 805 805 * 806 806 * Read back cached states from the device if they exist. This function 807 - * assumings binding_mutex is held. 807 + * assumes binding_mutex is held. 808 808 */ 809 809 int vmw_query_readback_all(struct vmw_buffer_object *dx_query_mob) 810 810 { ··· 1125 1125 } 1126 1126 1127 1127 /* 1128 - * In order of increasing backup_offset, clean dirty resorces 1128 + * In order of increasing backup_offset, clean dirty resources 1129 1129 * intersecting the range. 1130 1130 */ 1131 1131 while (found) {
+1 -1
drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c
··· 196 196 * type. 197 197 * 198 198 * Returns: Refcounted pointer to the embedded struct vmw_resource if 199 - * successfule. Error pointer otherwise. 199 + * successful. Error pointer otherwise. 200 200 */ 201 201 struct vmw_resource * 202 202 vmw_simple_resource_lookup(struct ttm_object_file *tfile,