dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/crtc: constify drm_crtc_index parameter
@ 2016-10-10 15:26 Jani Nikula
  2016-10-10 15:29 ` [Intel-gfx] " Daniel Vetter
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jani Nikula @ 2016-10-10 15:26 UTC (permalink / raw)
  To: dri-devel; +Cc: jani.nikula, intel-gfx

Signed-off-by: Jani Nikula <jani.nikula@intel.com>

---

I needed this for some stuff that turned out to be a dead end. But this
seems to be the right thing to do anyway.
---
 include/drm/drm_crtc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 61932f55f788..0aa292526567 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -1342,7 +1342,7 @@ extern void drm_crtc_cleanup(struct drm_crtc *crtc);
  * Given a registered CRTC, return the index of that CRTC within a DRM
  * device's list of CRTCs.
  */
-static inline unsigned int drm_crtc_index(struct drm_crtc *crtc)
+static inline unsigned int drm_crtc_index(const struct drm_crtc *crtc)
 {
 	return crtc->index;
 }
-- 
2.1.4

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2016-10-10 17:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-10 15:26 [PATCH] drm/crtc: constify drm_crtc_index parameter Jani Nikula
2016-10-10 15:29 ` [Intel-gfx] " Daniel Vetter
2016-10-10 15:34 ` Chris Wilson
2016-10-10 16:04 ` Ville Syrjälä
2016-10-10 16:10   ` Daniel Vetter
2016-10-10 16:30     ` Ville Syrjälä
2016-10-10 17:19       ` [Intel-gfx] " Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).