0338-drm-vc4-Rename-async-to-nonblock.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. From cc94958e3c07a50d65b45ea654fa498ef4d4b493 Mon Sep 17 00:00:00 2001
  2. From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
  3. Date: Tue, 26 Apr 2016 16:11:44 +0200
  4. Subject: [PATCH 338/381] drm/vc4: Rename async to nonblock.
  5. The async name is deprecated and should be changed to nonblocking.
  6. Cc: Eric Anholt <eric@anholt.net>
  7. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
  8. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  9. Link: http://patchwork.freedesktop.org/patch/msgid/1461679905-30177-12-git-send-email-maarten.lankhorst@linux.intel.com
  10. (cherry picked from commit eb63961ba52ba545f5b7ebeeeefe1c98704e1a79)
  11. ---
  12. drivers/gpu/drm/vc4/vc4_kms.c | 6 +++---
  13. 1 file changed, 3 insertions(+), 3 deletions(-)
  14. --- a/drivers/gpu/drm/vc4/vc4_kms.c
  15. +++ b/drivers/gpu/drm/vc4/vc4_kms.c
  16. @@ -93,7 +93,7 @@ static struct vc4_commit *commit_init(st
  17. * vc4_atomic_commit - commit validated state object
  18. * @dev: DRM device
  19. * @state: the driver state object
  20. - * @async: asynchronous commit
  21. + * @nonblock: nonblocking commit
  22. *
  23. * This function commits a with drm_atomic_helper_check() pre-validated state
  24. * object. This can still fail when e.g. the framebuffer reservation fails. For
  25. @@ -104,7 +104,7 @@ static struct vc4_commit *commit_init(st
  26. */
  27. static int vc4_atomic_commit(struct drm_device *dev,
  28. struct drm_atomic_state *state,
  29. - bool async)
  30. + bool nonblock)
  31. {
  32. struct vc4_dev *vc4 = to_vc4_dev(dev);
  33. int ret;
  34. @@ -170,7 +170,7 @@ static int vc4_atomic_commit(struct drm_
  35. * current layout.
  36. */
  37. - if (async) {
  38. + if (nonblock) {
  39. vc4_queue_seqno_cb(dev, &c->cb, wait_seqno,
  40. vc4_atomic_complete_commit_seqno_cb);
  41. } else {