Skip to content

Commit 1e55a53

Browse files
mattropedanvet
authored andcommitted
drm: Trivial comment grammar cleanups
Most of these are just cases where code comments used contractions (it's, who's) where they actually mean to use a possessive pronoun (its, whose) or vice-versa. Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20190202012326.20096-1-matthew.d.roper@intel.com
1 parent 24ded29 commit 1e55a53

21 files changed

+40
-40
lines changed

drivers/gpu/drm/drm_agpsupport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ int drm_agp_bind_ioctl(struct drm_device *dev, void *data,
348348
* \return zero on success or a negative number on failure.
349349
*
350350
* Verifies the AGP device is present and has been acquired and looks up the
351-
* AGP memory entry. If the memory it's currently bound, unbind it via
351+
* AGP memory entry. If the memory is currently bound, unbind it via
352352
* unbind_agp(). Frees it via free_agp() as well as the entry itself
353353
* and unlinks from the doubly linked list it's inserted in.
354354
*/

drivers/gpu/drm/drm_atomic_helper.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ update_connector_routing(struct drm_atomic_state *state,
330330
* Since the connector can be unregistered at any point during an
331331
* atomic check or commit, this is racy. But that's OK: all we care
332332
* about is ensuring that userspace can't do anything but shut off the
333-
* display on a connector that was destroyed after its been notified,
333+
* display on a connector that was destroyed after it's been notified,
334334
* not before.
335335
*/
336336
if (drm_connector_is_unregistered(connector) && crtc_state->active) {
@@ -685,7 +685,7 @@ drm_atomic_helper_check_modeset(struct drm_device *dev,
685685

686686
/*
687687
* After all the routing has been prepared we need to add in any
688-
* connector which is itself unchanged, but who's crtc changes it's
688+
* connector which is itself unchanged, but whose crtc changes its
689689
* configuration. This must be done before calling mode_fixup in case a
690690
* crtc only changed its mode but has the same set of connectors.
691691
*/
@@ -1670,7 +1670,7 @@ EXPORT_SYMBOL(drm_atomic_helper_async_commit);
16701670
* drm_atomic_helper_setup_commit() and related functions.
16711671
*
16721672
* Committing the actual hardware state is done through the
1673-
* &drm_mode_config_helper_funcs.atomic_commit_tail callback, or it's default
1673+
* &drm_mode_config_helper_funcs.atomic_commit_tail callback, or its default
16741674
* implementation drm_atomic_helper_commit_tail().
16751675
*
16761676
* RETURNS:
@@ -1893,7 +1893,7 @@ crtc_or_fake_commit(struct drm_atomic_state *state, struct drm_crtc *crtc)
18931893
* functions. drm_atomic_helper_wait_for_dependencies() must be called before
18941894
* actually committing the hardware state, and for nonblocking commits this call
18951895
* must be placed in the async worker. See also drm_atomic_helper_swap_state()
1896-
* and it's stall parameter, for when a driver's commit hooks look at the
1896+
* and its stall parameter, for when a driver's commit hooks look at the
18971897
* &drm_crtc.state, &drm_plane.state or &drm_connector.state pointer directly.
18981898
*
18991899
* Completion of the hardware commit step must be signalled using

drivers/gpu/drm/drm_atomic_uapi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
* DOC: overview
4545
*
4646
* This file contains the marshalling and demarshalling glue for the atomic UAPI
47-
* in all it's form: The monster ATOMIC IOCTL itself, code for GET_PROPERTY and
48-
* SET_PROPERTY IOCTls. Plus interface functions for compatibility helpers and
47+
* in all its forms: The monster ATOMIC IOCTL itself, code for GET_PROPERTY and
48+
* SET_PROPERTY IOCTLs. Plus interface functions for compatibility helpers and
4949
* drivers which have special needs to construct their own atomic updates, e.g.
5050
* for load detect or similiar.
5151
*/

drivers/gpu/drm/drm_bufs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ int drm_legacy_getmap_ioctl(struct drm_device *dev, void *data,
494494
* isn't in use.
495495
*
496496
* Searches the map on drm_device::maplist, removes it from the list, see if
497-
* its being used, and free any associate resource (such as MTRR's) if it's not
497+
* it's being used, and free any associated resource (such as MTRR's) if it's not
498498
* being on use.
499499
*
500500
* \sa drm_legacy_addmap
@@ -621,7 +621,7 @@ int drm_legacy_rmmap_ioctl(struct drm_device *dev, void *data,
621621
}
622622
}
623623

624-
/* List has wrapped around to the head pointer, or its empty we didn't
624+
/* List has wrapped around to the head pointer, or it's empty we didn't
625625
* find anything.
626626
*/
627627
if (list_empty(&dev->maplist) || !map) {

drivers/gpu/drm/drm_connector.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ EXPORT_SYMBOL(drm_mode_create_dvi_i_properties);
10661066
*
10671067
* content type (HDMI specific):
10681068
* Indicates content type setting to be used in HDMI infoframes to indicate
1069-
* content type for the external device, so that it adjusts it's display
1069+
* content type for the external device, so that it adjusts its display
10701070
* settings accordingly.
10711071
*
10721072
* The value of this property can be one of the following:

drivers/gpu/drm/drm_dp_mst_topology.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ static void drm_dp_free_mst_branch_device(struct kref *kref)
941941
* in-memory topology state from being changed in the middle of critical
942942
* operations like changing the internal state of payload allocations. This
943943
* means each branch and port will be considered to be connected to the rest
944-
* of the topology until it's topology refcount reaches zero. Additionally,
944+
* of the topology until its topology refcount reaches zero. Additionally,
945945
* for ports this means that their associated &struct drm_connector will stay
946946
* registered with userspace until the port's refcount reaches 0.
947947
*
@@ -979,8 +979,8 @@ static void drm_dp_free_mst_branch_device(struct kref *kref)
979979
* same way as the C pointers used to reference a structure.
980980
*
981981
* As you can see in the above figure, every branch increments the topology
982-
* refcount of it's children, and increments the malloc refcount of it's
983-
* parent. Additionally, every payload increments the malloc refcount of it's
982+
* refcount of its children, and increments the malloc refcount of its
983+
* parent. Additionally, every payload increments the malloc refcount of its
984984
* assigned port by 1.
985985
*
986986
* So, what would happen if MSTB #3 from the above figure was unplugged from
@@ -997,9 +997,9 @@ static void drm_dp_free_mst_branch_device(struct kref *kref)
997997
* of its parent, and finally its own malloc refcount. For MSTB #4 and port
998998
* #4, this means they both have been disconnected from the topology and freed
999999
* from memory. But, because payload #2 is still holding a reference to port
1000-
* #3, port #3 is removed from the topology but it's &struct drm_dp_mst_port
1000+
* #3, port #3 is removed from the topology but its &struct drm_dp_mst_port
10011001
* is still accessible from memory. This also means port #3 has not yet
1002-
* decremented the malloc refcount of MSTB #3, so it's &struct
1002+
* decremented the malloc refcount of MSTB #3, so its &struct
10031003
* drm_dp_mst_branch will also stay allocated in memory until port #3's
10041004
* malloc refcount reaches 0.
10051005
*
@@ -1139,7 +1139,7 @@ static void drm_dp_destroy_mst_branch_device(struct kref *kref)
11391139

11401140
/**
11411141
* drm_dp_mst_topology_try_get_mstb() - Increment the topology refcount of a
1142-
* branch device unless its zero
1142+
* branch device unless it's zero
11431143
* @mstb: &struct drm_dp_mst_branch to increment the topology refcount of
11441144
*
11451145
* Attempts to grab a topology reference to @mstb, if it hasn't yet been
@@ -1265,7 +1265,7 @@ static void drm_dp_destroy_port(struct kref *kref)
12651265

12661266
/**
12671267
* drm_dp_mst_topology_try_get_port() - Increment the topology refcount of a
1268-
* port unless its zero
1268+
* port unless it's zero
12691269
* @port: &struct drm_dp_mst_port to increment the topology refcount of
12701270
*
12711271
* Attempts to grab a topology reference to @port, if it hasn't yet been
@@ -1471,7 +1471,7 @@ static bool drm_dp_port_setup_pdt(struct drm_dp_mst_port *port)
14711471
port->mstb->port_parent = port;
14721472
/*
14731473
* Make sure this port's memory allocation stays
1474-
* around until it's child MSTB releases it
1474+
* around until its child MSTB releases it
14751475
*/
14761476
drm_dp_mst_get_port_malloc(port);
14771477

@@ -2271,7 +2271,7 @@ static int drm_dp_destroy_payload_step1(struct drm_dp_mst_topology_mgr *mgr,
22712271
struct drm_dp_payload *payload)
22722272
{
22732273
DRM_DEBUG_KMS("\n");
2274-
/* its okay for these to fail */
2274+
/* it's okay for these to fail */
22752275
if (port) {
22762276
drm_dp_payload_send_msg(mgr, port, id, 0);
22772277
}
@@ -2947,7 +2947,7 @@ enum drm_connector_status drm_dp_mst_detect_port(struct drm_connector *connector
29472947
{
29482948
enum drm_connector_status status = connector_status_disconnected;
29492949

2950-
/* we need to search for the port in the mgr in case its gone */
2950+
/* we need to search for the port in the mgr in case it's gone */
29512951
port = drm_dp_mst_topology_get_port_validated(mgr, port);
29522952
if (!port)
29532953
return connector_status_disconnected;
@@ -3013,7 +3013,7 @@ struct edid *drm_dp_mst_get_edid(struct drm_connector *connector, struct drm_dp_
30133013
{
30143014
struct edid *edid = NULL;
30153015

3016-
/* we need to search for the port in the mgr in case its gone */
3016+
/* we need to search for the port in the mgr in case it's gone */
30173017
port = drm_dp_mst_topology_get_port_validated(mgr, port);
30183018
if (!port)
30193019
return NULL;
@@ -3180,7 +3180,7 @@ EXPORT_SYMBOL(drm_dp_atomic_find_vcpi_slots);
31803180
* Releases any VCPI slots that have been allocated to a port in the atomic
31813181
* state. Any atomic drivers which support MST must call this function in
31823182
* their &drm_connector_helper_funcs.atomic_check() callback when the
3183-
* connector will no longer have VCPI allocated (e.g. because it's CRTC was
3183+
* connector will no longer have VCPI allocated (e.g. because its CRTC was
31843184
* removed) when it had VCPI allocated in the previous atomic state.
31853185
*
31863186
* It is OK to call this even if @port has been removed from the system.
@@ -3268,7 +3268,7 @@ bool drm_dp_mst_allocate_vcpi(struct drm_dp_mst_topology_mgr *mgr,
32683268
DRM_DEBUG_KMS("initing vcpi for pbn=%d slots=%d\n",
32693269
pbn, port->vcpi.num_slots);
32703270

3271-
/* Keep port allocated until it's payload has been removed */
3271+
/* Keep port allocated until its payload has been removed */
32723272
drm_dp_mst_get_port_malloc(port);
32733273
drm_dp_mst_topology_put_port(port);
32743274
return true;
@@ -3300,7 +3300,7 @@ EXPORT_SYMBOL(drm_dp_mst_get_vcpi_slots);
33003300
void drm_dp_mst_reset_vcpi_slots(struct drm_dp_mst_topology_mgr *mgr, struct drm_dp_mst_port *port)
33013301
{
33023302
/*
3303-
* A port with VCPI will remain allocated until it's VCPI is
3303+
* A port with VCPI will remain allocated until its VCPI is
33043304
* released, no verified ref needed
33053305
*/
33063306

@@ -3317,7 +3317,7 @@ void drm_dp_mst_deallocate_vcpi(struct drm_dp_mst_topology_mgr *mgr,
33173317
struct drm_dp_mst_port *port)
33183318
{
33193319
/*
3320-
* A port with VCPI will remain allocated until it's VCPI is
3320+
* A port with VCPI will remain allocated until its VCPI is
33213321
* released, no verified ref needed
33223322
*/
33233323

drivers/gpu/drm/drm_fb_helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2483,7 +2483,7 @@ static int drm_pick_crtcs(struct drm_fb_helper *fb_helper,
24832483
/*
24842484
* This function checks if rotation is necessary because of panel orientation
24852485
* and if it is, if it is supported.
2486-
* If rotation is necessary and supported, its gets set in fb_crtc.rotation.
2486+
* If rotation is necessary and supported, it gets set in fb_crtc.rotation.
24872487
* If rotation is necessary but not supported, a DRM_MODE_ROTATE_* flag gets
24882488
* or-ed into fb_helper->sw_rotations. In drm_setup_crtcs_fb() we check if only
24892489
* one bit is set and then we set fb_info.fbcon_rotate_hint to make fbcon do

drivers/gpu/drm/drm_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ int drm_event_reserve_init(struct drm_device *dev,
701701
EXPORT_SYMBOL(drm_event_reserve_init);
702702

703703
/**
704-
* drm_event_cancel_free - free a DRM event and release it's space
704+
* drm_event_cancel_free - free a DRM event and release its space
705705
* @dev: DRM device
706706
* @p: tracking structure for the pending event
707707
*

drivers/gpu/drm/drm_framebuffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ EXPORT_SYMBOL(drm_framebuffer_lookup);
773773
* @fb: fb to unregister
774774
*
775775
* Drivers need to call this when cleaning up driver-private framebuffers, e.g.
776-
* those used for fbdev. Note that the caller must hold a reference of it's own,
776+
* those used for fbdev. Note that the caller must hold a reference of its own,
777777
* i.e. the object may not be destroyed through this call (since it'll lead to a
778778
* locking inversion).
779779
*

drivers/gpu/drm/drm_gem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ void drm_gem_put_pages(struct drm_gem_object *obj, struct page **pages,
660660
EXPORT_SYMBOL(drm_gem_put_pages);
661661

662662
/**
663-
* drm_gem_object_lookup - look up a GEM object from it's handle
663+
* drm_gem_object_lookup - look up a GEM object from its handle
664664
* @filp: DRM file private date
665665
* @handle: userspace handle
666666
*

drivers/gpu/drm/drm_mm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ EXPORT_SYMBOL(drm_mm_scan_add_block);
816816
* When the scan list is empty, the selected memory nodes can be freed. An
817817
* immediately following drm_mm_insert_node_in_range_generic() or one of the
818818
* simpler versions of that function with !DRM_MM_SEARCH_BEST will then return
819-
* the just freed block (because its at the top of the free_stack list).
819+
* the just freed block (because it's at the top of the free_stack list).
820820
*
821821
* Returns:
822822
* True if this block should be evicted, false otherwise. Will always

drivers/gpu/drm/drm_modes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,7 @@ const char *drm_get_mode_status_name(enum drm_mode_status status)
12721272
* @verbose: be verbose about it
12731273
*
12741274
* This helper function can be used to prune a display mode list after
1275-
* validation has been completed. All modes who's status is not MODE_OK will be
1275+
* validation has been completed. All modes whose status is not MODE_OK will be
12761276
* removed from the list, and if @verbose the status code and mode name is also
12771277
* printed to dmesg.
12781278
*/

drivers/gpu/drm/drm_property.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ int drm_mode_destroyblob_ioctl(struct drm_device *dev,
866866
* value doesn't become invalid part way through the property update due to
867867
* race). The value returned by reference via 'obj' should be passed back
868868
* to drm_property_change_valid_put() after the property is set (and the
869-
* object to which the property is attached has a chance to take it's own
869+
* object to which the property is attached has a chance to take its own
870870
* reference).
871871
*/
872872
bool drm_property_change_valid_get(struct drm_property *property,

drivers/gpu/drm/drm_vblank.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* Drivers must initialize the vertical blanking handling core with a call to
4949
* drm_vblank_init(). Minimally, a driver needs to implement
5050
* &drm_crtc_funcs.enable_vblank and &drm_crtc_funcs.disable_vblank plus call
51-
* drm_crtc_handle_vblank() in it's vblank interrupt handler for working vblank
51+
* drm_crtc_handle_vblank() in its vblank interrupt handler for working vblank
5252
* support.
5353
*
5454
* Vertical blanking interrupts can be enabled by the DRM core or by drivers

include/drm/drm_atomic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ struct drm_private_state;
192192
* private objects. The structure itself is used as a vtable to identify the
193193
* associated private object type. Each private object type that needs to be
194194
* added to the atomic states is expected to have an implementation of these
195-
* hooks and pass a pointer to it's drm_private_state_funcs struct to
195+
* hooks and pass a pointer to its drm_private_state_funcs struct to
196196
* drm_atomic_get_private_obj_state().
197197
*/
198198
struct drm_private_state_funcs {

include/drm/drm_client.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct drm_client_funcs {
2626
* @unregister:
2727
*
2828
* Called when &drm_device is unregistered. The client should respond by
29-
* releasing it's resources using drm_client_release().
29+
* releasing its resources using drm_client_release().
3030
*
3131
* This callback is optional.
3232
*/

include/drm/drm_connector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ struct drm_connector {
912912
/**
913913
* @ycbcr_420_allowed : This bool indicates if this connector is
914914
* capable of handling YCBCR 420 output. While parsing the EDID
915-
* blocks, its very helpful to know, if the source is capable of
915+
* blocks it's very helpful to know if the source is capable of
916916
* handling YCBCR 420 outputs.
917917
*/
918918
bool ycbcr_420_allowed;

include/drm/drm_mode_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ struct drm_mode_config {
361361
*
362362
* This is the big scary modeset BKL which protects everything that
363363
* isn't protect otherwise. Scope is unclear and fuzzy, try to remove
364-
* anything from under it's protection and move it into more well-scoped
364+
* anything from under its protection and move it into more well-scoped
365365
* locks.
366366
*
367367
* The one important thing this protects is the use of @acquire_ctx.

include/drm/drm_modeset_helper_vtables.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ struct drm_plane_helper_funcs {
10131013
* @prepare_fb:
10141014
*
10151015
* This hook is to prepare a framebuffer for scanout by e.g. pinning
1016-
* it's backing storage or relocating it into a contiguous block of
1016+
* its backing storage or relocating it into a contiguous block of
10171017
* VRAM. Other possible preparatory work includes flushing caches.
10181018
*
10191019
* This function must not block for outstanding rendering, since it is

include/drm/drm_modeset_lock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct drm_modeset_acquire_ctx {
6868
/**
6969
* struct drm_modeset_lock - used for locking modeset resources.
7070
* @mutex: resource locking
71-
* @head: used to hold it's place on &drm_atomi_state.locked list when
71+
* @head: used to hold its place on &drm_atomi_state.locked list when
7272
* part of an atomic update
7373
*
7474
* Used for locking CRTCs and other modeset resources.

include/drm/ttm/ttm_bo_driver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ int ttm_bo_pipeline_move(struct ttm_buffer_object *bo,
867867
*
868868
* @bo: A pointer to a struct ttm_buffer_object.
869869
*
870-
* Pipelined gutting a BO of it's backing store.
870+
* Pipelined gutting a BO of its backing store.
871871
*/
872872
int ttm_bo_pipeline_gutting(struct ttm_buffer_object *bo);
873873

0 commit comments

Comments
 (0)