svn commit: r261631 - in stable/9/sys/dev/drm2: . i915

Jean-Sebastien Pedron dumbbell at FreeBSD.org
Sat Feb 8 10:57:49 UTC 2014


Author: dumbbell
Date: Sat Feb  8 10:57:46 2014
New Revision: 261631
URL: http://svnweb.freebsd.org/changeset/base/261631

Log:
  MFC r254797:
  
  drm: Const'ify the 1st "drm_display_mode" passed to "mode_fixup" callbacks
  
  This will be needed by the Radeon KMS driver.

Modified:
  stable/9/sys/dev/drm2/drm_crtc.h
  stable/9/sys/dev/drm2/drm_crtc_helper.h
  stable/9/sys/dev/drm2/i915/intel_crt.c
  stable/9/sys/dev/drm2/i915/intel_display.c
  stable/9/sys/dev/drm2/i915/intel_dp.c
  stable/9/sys/dev/drm2/i915/intel_drv.h
  stable/9/sys/dev/drm2/i915/intel_hdmi.c
  stable/9/sys/dev/drm2/i915/intel_lvds.c
  stable/9/sys/dev/drm2/i915/intel_panel.c
  stable/9/sys/dev/drm2/i915/intel_sdvo.c
  stable/9/sys/dev/drm2/i915/intel_tv.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/drm2/drm_crtc.h
==============================================================================
--- stable/9/sys/dev/drm2/drm_crtc.h	Sat Feb  8 10:45:49 2014	(r261630)
+++ stable/9/sys/dev/drm2/drm_crtc.h	Sat Feb  8 10:57:46 2014	(r261631)
@@ -659,7 +659,7 @@ struct drm_mode_config {
 
 	int min_width, min_height;
 	int max_width, max_height;
-	struct drm_mode_config_funcs *funcs;
+	const struct drm_mode_config_funcs *funcs;
 	resource_size_t fb_base;
 
 	/* output poll support */

Modified: stable/9/sys/dev/drm2/drm_crtc_helper.h
==============================================================================
--- stable/9/sys/dev/drm2/drm_crtc_helper.h	Sat Feb  8 10:45:49 2014	(r261630)
+++ stable/9/sys/dev/drm2/drm_crtc_helper.h	Sat Feb  8 10:57:46 2014	(r261631)
@@ -51,7 +51,7 @@ struct drm_crtc_helper_funcs {
 
 	/* Provider can fixup or change mode timings before modeset occurs */
 	bool (*mode_fixup)(struct drm_crtc *crtc,
-			   struct drm_display_mode *mode,
+			   const struct drm_display_mode *mode,
 			   struct drm_display_mode *adjusted_mode);
 	/* Actually set the mode */
 	int (*mode_set)(struct drm_crtc *crtc, struct drm_display_mode *mode,
@@ -78,7 +78,7 @@ struct drm_encoder_helper_funcs {
 	void (*restore)(struct drm_encoder *encoder);
 
 	bool (*mode_fixup)(struct drm_encoder *encoder,
-			   struct drm_display_mode *mode,
+			   const struct drm_display_mode *mode,
 			   struct drm_display_mode *adjusted_mode);
 	void (*prepare)(struct drm_encoder *encoder);
 	void (*commit)(struct drm_encoder *encoder);

Modified: stable/9/sys/dev/drm2/i915/intel_crt.c
==============================================================================
--- stable/9/sys/dev/drm2/i915/intel_crt.c	Sat Feb  8 10:45:49 2014	(r261630)
+++ stable/9/sys/dev/drm2/i915/intel_crt.c	Sat Feb  8 10:57:46 2014	(r261631)
@@ -111,7 +111,7 @@ static int intel_crt_mode_valid(struct d
 }
 
 static bool intel_crt_mode_fixup(struct drm_encoder *encoder,
-				 struct drm_display_mode *mode,
+				 const struct drm_display_mode *mode,
 				 struct drm_display_mode *adjusted_mode)
 {
 	return true;

Modified: stable/9/sys/dev/drm2/i915/intel_display.c
==============================================================================
--- stable/9/sys/dev/drm2/i915/intel_display.c	Sat Feb  8 10:45:49 2014	(r261630)
+++ stable/9/sys/dev/drm2/i915/intel_display.c	Sat Feb  8 10:57:46 2014	(r261631)
@@ -3512,7 +3512,7 @@ void intel_encoder_destroy(struct drm_en
 }
 
 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;

Modified: stable/9/sys/dev/drm2/i915/intel_dp.c
==============================================================================
--- stable/9/sys/dev/drm2/i915/intel_dp.c	Sat Feb  8 10:45:49 2014	(r261630)
+++ stable/9/sys/dev/drm2/i915/intel_dp.c	Sat Feb  8 10:57:46 2014	(r261631)
@@ -224,7 +224,7 @@ intel_dp_max_data_rate(int max_link_cloc
 
 static bool
 intel_dp_adjust_dithering(struct intel_dp *intel_dp,
-			  struct drm_display_mode *mode,
+			  const struct drm_display_mode *mode,
 			  struct drm_display_mode *adjusted_mode)
 {
 	int max_link_clock = intel_dp_link_clock(intel_dp_max_link_bw(intel_dp));
@@ -676,7 +676,7 @@ intel_dp_i2c_init(struct intel_dp *intel
 }
 
 static bool
-intel_dp_mode_fixup(struct drm_encoder *encoder, struct drm_display_mode *mode,
+intel_dp_mode_fixup(struct drm_encoder *encoder, const struct drm_display_mode *mode,
 		    struct drm_display_mode *adjusted_mode)
 {
 	struct drm_device *dev = encoder->dev;

Modified: stable/9/sys/dev/drm2/i915/intel_drv.h
==============================================================================
--- stable/9/sys/dev/drm2/i915/intel_drv.h	Sat Feb  8 10:45:49 2014	(r261630)
+++ stable/9/sys/dev/drm2/i915/intel_drv.h	Sat Feb  8 10:57:46 2014	(r261631)
@@ -320,7 +320,7 @@ extern void intel_fixed_panel_mode(struc
 				   struct drm_display_mode *adjusted_mode);
 extern void intel_pch_panel_fitting(struct drm_device *dev,
 				    int fitting_mode,
-				    struct drm_display_mode *mode,
+				    const struct drm_display_mode *mode,
 				    struct drm_display_mode *adjusted_mode);
 extern u32 intel_panel_get_max_backlight(struct drm_device *dev);
 extern u32 intel_panel_get_backlight(struct drm_device *dev);

Modified: stable/9/sys/dev/drm2/i915/intel_hdmi.c
==============================================================================
--- stable/9/sys/dev/drm2/i915/intel_hdmi.c	Sat Feb  8 10:45:49 2014	(r261630)
+++ stable/9/sys/dev/drm2/i915/intel_hdmi.c	Sat Feb  8 10:57:46 2014	(r261631)
@@ -318,7 +318,7 @@ static int intel_hdmi_mode_valid(struct 
 }
 
 static bool intel_hdmi_mode_fixup(struct drm_encoder *encoder,
-				  struct drm_display_mode *mode,
+				  const struct drm_display_mode *mode,
 				  struct drm_display_mode *adjusted_mode)
 {
 	return true;

Modified: stable/9/sys/dev/drm2/i915/intel_lvds.c
==============================================================================
--- stable/9/sys/dev/drm2/i915/intel_lvds.c	Sat Feb  8 10:45:49 2014	(r261630)
+++ stable/9/sys/dev/drm2/i915/intel_lvds.c	Sat Feb  8 10:57:46 2014	(r261631)
@@ -230,7 +230,7 @@ static inline u32 panel_fitter_scaling(u
 }
 
 static bool intel_lvds_mode_fixup(struct drm_encoder *encoder,
-				  struct drm_display_mode *mode,
+				  const struct drm_display_mode *mode,
 				  struct drm_display_mode *adjusted_mode)
 {
 	struct drm_device *dev = encoder->dev;

Modified: stable/9/sys/dev/drm2/i915/intel_panel.c
==============================================================================
--- stable/9/sys/dev/drm2/i915/intel_panel.c	Sat Feb  8 10:45:49 2014	(r261630)
+++ stable/9/sys/dev/drm2/i915/intel_panel.c	Sat Feb  8 10:57:46 2014	(r261631)
@@ -59,7 +59,7 @@ intel_fixed_panel_mode(struct drm_displa
 void
 intel_pch_panel_fitting(struct drm_device *dev,
 			int fitting_mode,
-			struct drm_display_mode *mode,
+			const struct drm_display_mode *mode,
 			struct drm_display_mode *adjusted_mode)
 {
 	struct drm_i915_private *dev_priv = dev->dev_private;

Modified: stable/9/sys/dev/drm2/i915/intel_sdvo.c
==============================================================================
--- stable/9/sys/dev/drm2/i915/intel_sdvo.c	Sat Feb  8 10:45:49 2014	(r261630)
+++ stable/9/sys/dev/drm2/i915/intel_sdvo.c	Sat Feb  8 10:57:46 2014	(r261631)
@@ -924,7 +924,7 @@ static bool intel_sdvo_set_tv_format(str
 
 static bool
 intel_sdvo_set_output_timings_from_mode(struct intel_sdvo *intel_sdvo,
-					struct drm_display_mode *mode)
+					const struct drm_display_mode *mode)
 {
 	struct intel_sdvo_dtd output_dtd;
 
@@ -941,7 +941,7 @@ intel_sdvo_set_output_timings_from_mode(
 
 static bool
 intel_sdvo_set_input_timings_for_mode(struct intel_sdvo *intel_sdvo,
-					struct drm_display_mode *mode,
+					const struct drm_display_mode *mode,
 					struct drm_display_mode *adjusted_mode)
 {
 	/* Reset the input timing to the screen. Assume always input 0. */
@@ -964,7 +964,7 @@ intel_sdvo_set_input_timings_for_mode(st
 }
 
 static bool intel_sdvo_mode_fixup(struct drm_encoder *encoder,
-				  struct drm_display_mode *mode,
+				  const struct drm_display_mode *mode,
 				  struct drm_display_mode *adjusted_mode)
 {
 	struct intel_sdvo *intel_sdvo = to_intel_sdvo(encoder);

Modified: stable/9/sys/dev/drm2/i915/intel_tv.c
==============================================================================
--- stable/9/sys/dev/drm2/i915/intel_tv.c	Sat Feb  8 10:45:49 2014	(r261630)
+++ stable/9/sys/dev/drm2/i915/intel_tv.c	Sat Feb  8 10:57:46 2014	(r261631)
@@ -846,7 +846,7 @@ intel_tv_mode_valid(struct drm_connector
 
 
 static bool
-intel_tv_mode_fixup(struct drm_encoder *encoder, struct drm_display_mode *mode,
+intel_tv_mode_fixup(struct drm_encoder *encoder, const struct drm_display_mode *mode,
 		    struct drm_display_mode *adjusted_mode)
 {
 	struct drm_device *dev = encoder->dev;


More information about the svn-src-all mailing list