Skip to contentSkip to conversation

drm/i915: constify mode in crtc_mode_fixup

PATCH Applied Daniel Vetter 3 participants 3 messages Jul 20, 2012 – Jul 23, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: constify mode in crtc_mode_fixup

Laurent Pinchart missed this when sending in is giant constify patch:

commit e811f5ae19043b2ac2c28e147a4274038e655598

Author: Laurent Pinchart <[email protected]>
Date:   Tue Jul 17 17:56:50 2012 +0200

drm: Make the .mode_fixup() operations mode argument a const pointer

---
 drivers/gpu/drm/i915/intel_display.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_display.c +1 -1
index 1802c30..fdd7671 100644
@@ -3575,7 +3575,7 @@ void intel_encoder_destroy(struct drm_encoder *encoder)
 }
 
 static bool intel_crtc_mode_fixup(struct drm_crtc *crtc,
-				  struct drm_display_mode *mode,
+				  const struct drm_display_mode *mode,
 				  struct drm_display_mode *adjusted_mode)
 {
 	struct drm_device *dev = crtc->dev;
Signature · 1 line
1.7.10
#1 lore raw

Hi Daniel,

Quoted 1 line · On Friday 20 July 2012 10:30:45 Daniel Vetter wrote:

Laurent Pinchart missed this when sending in is giant constify patch:

My bad, sorry. I would have sworn I had compiled all the x86 DRM drivers, that warning must have slipped through the cracks somehow. Thank you for the fix.

Quoted 7 lines

commit e811f5ae19043b2ac2c28e147a4274038e655598

Author: Laurent Pinchart <[email protected]>
Date:   Tue Jul 17 17:56:50 2012 +0200

drm: Make the .mode_fixup() operations mode argument a const pointer

Acked-by; Laurent Pinchart <[email protected]>

Quoted 17 lines
---
 drivers/gpu/drm/i915/intel_display.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
(quoted diff) +0 -0

b/drivers/gpu/drm/i915/intel_display.c index 1802c30..fdd7671 100644

drivers/gpu/drm/i915/intel_display.c +1 -1
@@ -3575,7 +3575,7 @@ void intel_encoder_destroy(struct drm_encoder
 *encoder) }
 
 static bool intel_crtc_mode_fixup(struct drm_crtc *crtc,
-				  struct drm_display_mode *mode,
+				  const struct drm_display_mode *mode,
 				  struct drm_display_mode *adjusted_mode)
 {
 	struct drm_device *dev = crtc->dev;
Signature · 3 lines
Regards,

Laurent Pinchart
#2 lore raw
Quoted 12 lines · Laurent Pinchart

Hi Daniel,

Quoted 1 line · On Friday 20 July 2012 10:30:45 Daniel Vetter wrote:

Laurent Pinchart missed this when sending in is giant constify patch:

My bad, sorry. I would have sworn I had compiled all the x86 DRM drivers, that warning must have slipped through the cracks somehow. Thank you for the fix.

Quoted 4 lines

commit e811f5ae19043b2ac2c28e147a4274038e655598

Author: Laurent Pinchart <[email protected]>
Date:   Tue Jul 17 17:56:50 2012 +0200
Quoted 5 lines
Quoted 3 lines

drm: Make the .mode_fixup() operations mode argument a const pointer

Acked-by; Laurent Pinchart <[email protected]>

Picked up for -fixes, thanks for the ack.
-Daniel

Signature · 3 lines
Daniel Vetter
Mail: [email protected]
Mobile: +41 (0)79 365 57 48