diff mbox series

drm: flip-work: rename commited -> committed

Message ID 20220714125601.34812-1-colin.i.king@gmail.com (mailing list archive)
State New, archived
Headers show
Series drm: flip-work: rename commited -> committed | expand

Commit Message

Colin Ian King July 14, 2022, 12:56 p.m. UTC
There is a spelling mistake in the list head variable, rename it.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
 drivers/gpu/drm/drm_flip_work.c | 10 +++++-----
 include/drm/drm_flip_work.h     |  6 +++---
 2 files changed, 8 insertions(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/drm_flip_work.c b/drivers/gpu/drm/drm_flip_work.c
index 060b753881a2..8efb5f2c5773 100644
--- a/drivers/gpu/drm/drm_flip_work.c
+++ b/drivers/gpu/drm/drm_flip_work.c
@@ -104,7 +104,7 @@  void drm_flip_work_commit(struct drm_flip_work *work,
 	unsigned long flags;
 
 	spin_lock_irqsave(&work->lock, flags);
-	list_splice_tail(&work->queued, &work->commited);
+	list_splice_tail(&work->queued, &work->committed);
 	INIT_LIST_HEAD(&work->queued);
 	spin_unlock_irqrestore(&work->lock, flags);
 	queue_work(wq, &work->worker);
@@ -122,8 +122,8 @@  static void flip_worker(struct work_struct *w)
 
 		INIT_LIST_HEAD(&tasks);
 		spin_lock_irqsave(&work->lock, flags);
-		list_splice_tail(&work->commited, &tasks);
-		INIT_LIST_HEAD(&work->commited);
+		list_splice_tail(&work->committed, &tasks);
+		INIT_LIST_HEAD(&work->committed);
 		spin_unlock_irqrestore(&work->lock, flags);
 
 		if (list_empty(&tasks))
@@ -149,7 +149,7 @@  void drm_flip_work_init(struct drm_flip_work *work,
 {
 	work->name = name;
 	INIT_LIST_HEAD(&work->queued);
-	INIT_LIST_HEAD(&work->commited);
+	INIT_LIST_HEAD(&work->committed);
 	spin_lock_init(&work->lock);
 	work->func = func;
 
@@ -165,6 +165,6 @@  EXPORT_SYMBOL(drm_flip_work_init);
  */
 void drm_flip_work_cleanup(struct drm_flip_work *work)
 {
-	WARN_ON(!list_empty(&work->queued) || !list_empty(&work->commited));
+	WARN_ON(!list_empty(&work->queued) || !list_empty(&work->committed));
 }
 EXPORT_SYMBOL(drm_flip_work_cleanup);
diff --git a/include/drm/drm_flip_work.h b/include/drm/drm_flip_work.h
index 21c3d512d25c..2e1342cdc568 100644
--- a/include/drm/drm_flip_work.h
+++ b/include/drm/drm_flip_work.h
@@ -67,15 +67,15 @@  struct drm_flip_task {
  * @func: callback fxn called for each committed item
  * @worker: worker which calls @func
  * @queued: queued tasks
- * @commited: commited tasks
- * @lock: lock to access queued and commited lists
+ * @committed: committed tasks
+ * @lock: lock to access queued and committed lists
  */
 struct drm_flip_work {
 	const char *name;
 	drm_flip_func_t func;
 	struct work_struct worker;
 	struct list_head queued;
-	struct list_head commited;
+	struct list_head committed;
 	spinlock_t lock;
 };