public inbox for cip-dev@lists.cip-project.org
 help / color / mirror / Atom feed
* [cip-dev] [PATCH 4.19.y-cip 1/2] drm: Add drm_atomic_get_old/new_private_obj_state
@ 2020-08-13  8:39 Biju Das
  2020-08-13  8:39 ` [cip-dev] [PATCH 4.19.y-cip 2/2] drm: atomic helper: fix W=1 warnings Biju Das
  0 siblings, 1 reply; 5+ messages in thread
From: Biju Das @ 2020-08-13  8:39 UTC (permalink / raw)
  To: cip-dev, Nobuhiro Iwamatsu, Pavel Machek
  Cc: Chris Paterson, Biju Das, Prabhakar Mahadev Lad

[-- Attachment #1: Type: text/plain, Size: 1527 bytes --]

From: "james qian wang (Arm Technology China)" <james.qian.wang@arm.com>

commit 9801a7eadf4cc29cdc90583a49f12decbb832ced upstream.

This pair of functions return the old/new private object state for the
given private_obj, or NULL if the private_obj is not part of the global
atomic state.

Reviewed-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>
Signed-off-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
[removed changes in drivers/gpu/drm/drm_atomic.c, since the same changes
are already present as part of the commit 60b4667275b6]
---
 include/drm/drm_atomic.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h
index c0b48e25a620..6329ed4af310 100644
--- a/include/drm/drm_atomic.h
+++ b/include/drm/drm_atomic.h
@@ -402,6 +402,12 @@ void drm_atomic_private_obj_fini(struct drm_private_obj *obj);
 struct drm_private_state * __must_check
 drm_atomic_get_private_obj_state(struct drm_atomic_state *state,
 				 struct drm_private_obj *obj);
+struct drm_private_state *
+drm_atomic_get_old_private_obj_state(struct drm_atomic_state *state,
+				     struct drm_private_obj *obj);
+struct drm_private_state *
+drm_atomic_get_new_private_obj_state(struct drm_atomic_state *state,
+				     struct drm_private_obj *obj);
 
 struct drm_connector *
 drm_atomic_get_old_connector_for_encoder(struct drm_atomic_state *state,
-- 
2.17.1


[-- Attachment #2: Type: text/plain, Size: 419 bytes --]

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#5119): https://lists.cip-project.org/g/cip-dev/message/5119
Mute This Topic: https://lists.cip-project.org/mt/76165488/4520388
Group Owner: cip-dev+owner@lists.cip-project.org
Unsubscribe: https://lists.cip-project.org/g/cip-dev/leave/8129055/727948398/xyzzy  [cip-dev@archiver.kernel.org]
-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-08-20  9:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-13  8:39 [cip-dev] [PATCH 4.19.y-cip 1/2] drm: Add drm_atomic_get_old/new_private_obj_state Biju Das
2020-08-13  8:39 ` [cip-dev] [PATCH 4.19.y-cip 2/2] drm: atomic helper: fix W=1 warnings Biju Das
2020-08-13 20:49   ` Pavel Machek
2020-08-19 23:16     ` Nobuhiro Iwamatsu
2020-08-20  9:41       ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox