Skip to content

Commit eab04cb

Browse files
Tom Rixkerneltoast
authored andcommitted
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
1 parent f57eff3 commit eab04cb

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

drivers/gpu/drm/vmwgfx/device_include/vm_basic_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ typedef __attribute__((aligned(32))) struct MKSGuestStatInfoEntry {
121121
*
122122
* Since the MKSGuestStatInfoEntry structures contain userlevel
123123
* 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
125125
* interpret the pointers.
126126
*
127127
* Because the host side code never acknowledges anything back to the

drivers/gpu/drm/vmwgfx/ttm_object.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ struct ttm_object_device;
9696
*
9797
* This struct is intended to be used as a base struct for objects that
9898
* 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.
100100
*/
101101

102102
struct ttm_base_object {
@@ -138,7 +138,7 @@ struct ttm_prime_object {
138138
*
139139
* @tfile: Pointer to a struct ttm_object_file.
140140
* @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.
142142
* (different @tfile pointers.)
143143
* @type: The object type.
144144
* @refcount_release: See the struct ttm_base_object description.

drivers/gpu/drm/vmwgfx/vmwgfx_bo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ int vmw_user_bo_lookup(struct drm_file *filp,
729729
* Any persistent usage of the object requires a refcount to be taken using
730730
* ttm_bo_reference_unless_doomed(). Iff this function returns successfully it
731731
* needs to be paired with vmw_user_bo_noref_release() and no sleeping-
732-
* or scheduling functions may be called inbetween these function calls.
732+
* or scheduling functions may be called in between these function calls.
733733
*
734734
* Return: A struct vmw_buffer_object pointer if successful or negative
735735
* error pointer on failure.

drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* @res: Refcounted pointer to a struct vmw_resource.
3737
* @hash: Hash entry for the manager hash table.
3838
* @head: List head used either by the staging list or the manager list
39-
* of commited resources.
39+
* of committed resources.
4040
* @state: Staging state of this resource entry.
4141
* @man: Pointer to a resource manager for this entry.
4242
*/
@@ -51,9 +51,9 @@ struct vmw_cmdbuf_res {
5151
/**
5252
* struct vmw_cmdbuf_res_manager - Command buffer resource manager.
5353
*
54-
* @resources: Hash table containing staged and commited command buffer
54+
* @resources: Hash table containing staged and committed command buffer
5555
* resources
56-
* @list: List of commited command buffer resources.
56+
* @list: List of committed command buffer resources.
5757
* @dev_priv: Pointer to a device private structure.
5858
*
5959
* @resources and @list are protected by the cmdbuf mutex for now.
@@ -118,7 +118,7 @@ static void vmw_cmdbuf_res_free(struct vmw_cmdbuf_res_manager *man,
118118
* This function commits a list of command buffer resource
119119
* additions or removals.
120120
* 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.
122122
*/
123123
void vmw_cmdbuf_res_commit(struct list_head *list)
124124
{

drivers/gpu/drm/vmwgfx/vmwgfx_kms.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct vmw_du_update_plane {
7070
*
7171
* Some surface resource or buffer object need some extra cmd submission
7272
* 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
7474
* called after FIFO allocation with the address of command buufer.
7575
*
7676
* This callback is optional.

drivers/gpu/drm/vmwgfx/vmwgfx_resource.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ void vmw_resource_unreserve(struct vmw_resource *res,
525525
* for a resource and in that case, allocate
526526
* one, reserve and validate it.
527527
*
528-
* @ticket: The ww aqcquire context to use, or NULL if trylocking.
528+
* @ticket: The ww acquire context to use, or NULL if trylocking.
529529
* @res: The resource for which to allocate a backup buffer.
530530
* @interruptible: Whether any sleeps during allocation should be
531531
* performed while interruptible.
@@ -686,7 +686,7 @@ static int vmw_resource_do_evict(struct ww_acquire_ctx *ticket,
686686
* @intr: Perform waits interruptible if possible.
687687
* @dirtying: Pending GPU operation will dirty the resource
688688
*
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
690690
* be reserved and validated.
691691
* On hardware resource shortage, this function will repeatedly evict
692692
* resources of the same type until the validation succeeds.
@@ -804,7 +804,7 @@ void vmw_resource_unbind_list(struct vmw_buffer_object *vbo)
804804
* @dx_query_mob: Buffer containing the DX query MOB
805805
*
806806
* Read back cached states from the device if they exist. This function
807-
* assumings binding_mutex is held.
807+
* assumes binding_mutex is held.
808808
*/
809809
int vmw_query_readback_all(struct vmw_buffer_object *dx_query_mob)
810810
{
@@ -1125,7 +1125,7 @@ int vmw_resources_clean(struct vmw_buffer_object *vbo, pgoff_t start,
11251125
}
11261126

11271127
/*
1128-
* In order of increasing backup_offset, clean dirty resorces
1128+
* In order of increasing backup_offset, clean dirty resources
11291129
* intersecting the range.
11301130
*/
11311131
while (found) {

drivers/gpu/drm/vmwgfx/vmwgfx_simple_resource.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ vmw_simple_resource_create_ioctl(struct drm_device *dev, void *data,
196196
* type.
197197
*
198198
* Returns: Refcounted pointer to the embedded struct vmw_resource if
199-
* successfule. Error pointer otherwise.
199+
* successful. Error pointer otherwise.
200200
*/
201201
struct vmw_resource *
202202
vmw_simple_resource_lookup(struct ttm_object_file *tfile,

0 commit comments

Comments
 (0)