Skip to content

Commit 1758f40

Browse files
xp4ns3danvet
authored andcommitted
drm: drm_atomic_helper.c: Correct comments format
Corrected comments format in accordance to the Linux style guides. Signed-off-by: Fabio M. De Francesco <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 9237ec1 commit 1758f40

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

drivers/gpu/drm/drm_atomic_helper.c

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,8 +1018,10 @@ disable_outputs(struct drm_device *dev, struct drm_atomic_state *old_state)
10181018
struct drm_encoder *encoder;
10191019
struct drm_bridge *bridge;
10201020

1021-
/* Shut down everything that's in the changeset and currently
1022-
* still on. So need to check the old, saved state. */
1021+
/*
1022+
* Shut down everything that's in the changeset and currently
1023+
* still on. So need to check the old, saved state.
1024+
*/
10231025
if (!old_conn_state->crtc)
10241026
continue;
10251027

@@ -1409,7 +1411,7 @@ EXPORT_SYMBOL(drm_atomic_helper_commit_modeset_enables);
14091411
* @dev: DRM device
14101412
* @state: atomic state object with old state structures
14111413
* @pre_swap: If true, do an interruptible wait, and @state is the new state.
1412-
* Otherwise @state is the old state.
1414+
* Otherwise @state is the old state.
14131415
*
14141416
* For implicit sync, driver should fish the exclusive fence out from the
14151417
* incoming fb's and stash it in the drm_plane_state. This is called after
@@ -1953,8 +1955,10 @@ static int stall_checks(struct drm_crtc *crtc, bool nonblock)
19531955
list_for_each_entry(commit, &crtc->commit_list, commit_entry) {
19541956
if (i == 0) {
19551957
completed = try_wait_for_completion(&commit->flip_done);
1956-
/* Userspace is not allowed to get ahead of the previous
1957-
* commit with nonblocking ones. */
1958+
/*
1959+
* Userspace is not allowed to get ahead of the previous
1960+
* commit with nonblocking ones.
1961+
*/
19581962
if (!completed && nonblock) {
19591963
spin_unlock(&crtc->commit_lock);
19601964
DRM_DEBUG_ATOMIC("[CRTC:%d:%s] busy with a previous commit\n",
@@ -2103,9 +2107,11 @@ int drm_atomic_helper_setup_commit(struct drm_atomic_state *state,
21032107
if (ret)
21042108
return ret;
21052109

2106-
/* Drivers only send out events when at least either current or
2110+
/*
2111+
* Drivers only send out events when at least either current or
21072112
* new CRTC state is active. Complete right away if everything
2108-
* stays off. */
2113+
* stays off.
2114+
*/
21092115
if (!old_crtc_state->active && !new_crtc_state->active) {
21102116
complete_all(&commit->flip_done);
21112117
continue;
@@ -2137,8 +2143,10 @@ int drm_atomic_helper_setup_commit(struct drm_atomic_state *state,
21372143
}
21382144

21392145
for_each_oldnew_connector_in_state(state, conn, old_conn_state, new_conn_state, i) {
2140-
/* Userspace is not allowed to get ahead of the previous
2141-
* commit with nonblocking ones. */
2146+
/*
2147+
* Userspace is not allowed to get ahead of the previous
2148+
* commit with nonblocking ones.
2149+
*/
21422150
if (nonblock && old_conn_state->commit &&
21432151
!try_wait_for_completion(&old_conn_state->commit->flip_done)) {
21442152
DRM_DEBUG_ATOMIC("[CONNECTOR:%d:%s] busy with a previous commit\n",
@@ -2156,8 +2164,10 @@ int drm_atomic_helper_setup_commit(struct drm_atomic_state *state,
21562164
}
21572165

21582166
for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) {
2159-
/* Userspace is not allowed to get ahead of the previous
2160-
* commit with nonblocking ones. */
2167+
/*
2168+
* Userspace is not allowed to get ahead of the previous
2169+
* commit with nonblocking ones.
2170+
*/
21612171
if (nonblock && old_plane_state->commit &&
21622172
!try_wait_for_completion(&old_plane_state->commit->flip_done)) {
21632173
DRM_DEBUG_ATOMIC("[PLANE:%d:%s] busy with a previous commit\n",

0 commit comments

Comments
 (0)