diff options
author | Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> | 2015-01-15 07:55:21 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-01-27 03:50:48 -0500 |
commit | 5cec258b4f185a5011165099a49757516f90de2b (patch) | |
tree | f557d2161ec0c200b046ac636ea2b94aec1d2e0a /drivers/gpu/drm/i915/intel_drv.h | |
parent | 96178eeb37298a9452f0c4b04f47fafedc7bab47 (diff) |
drm/i915: Rename struct intel_crtc_config to intel_crtc_state
The objective is to make this structure usable with the atomic helpers,
so let's start with the rename. Patch generated with coccinelle:
@@ @@
-struct intel_crtc_config {
+struct intel_crtc_state {
...
}
@@ @@
-struct intel_crtc_config
+struct intel_crtc_state
v2: Completely generate the patch with cocci. (Ander)
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_drv.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index bd4d5148d27e..9ecac5544fed 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h | |||
@@ -143,7 +143,7 @@ struct intel_encoder { | |||
143 | bool connectors_active; | 143 | bool connectors_active; |
144 | void (*hot_plug)(struct intel_encoder *); | 144 | void (*hot_plug)(struct intel_encoder *); |
145 | bool (*compute_config)(struct intel_encoder *, | 145 | bool (*compute_config)(struct intel_encoder *, |
146 | struct intel_crtc_config *); | 146 | struct intel_crtc_state *); |
147 | void (*pre_pll_enable)(struct intel_encoder *); | 147 | void (*pre_pll_enable)(struct intel_encoder *); |
148 | void (*pre_enable)(struct intel_encoder *); | 148 | void (*pre_enable)(struct intel_encoder *); |
149 | void (*enable)(struct intel_encoder *); | 149 | void (*enable)(struct intel_encoder *); |
@@ -159,7 +159,7 @@ struct intel_encoder { | |||
159 | * pre-filled the pipe config. Note that intel_encoder->base.crtc must | 159 | * pre-filled the pipe config. Note that intel_encoder->base.crtc must |
160 | * be set correctly before calling this function. */ | 160 | * be set correctly before calling this function. */ |
161 | void (*get_config)(struct intel_encoder *, | 161 | void (*get_config)(struct intel_encoder *, |
162 | struct intel_crtc_config *pipe_config); | 162 | struct intel_crtc_state *pipe_config); |
163 | /* | 163 | /* |
164 | * Called during system suspend after all pending requests for the | 164 | * Called during system suspend after all pending requests for the |
165 | * encoder are flushed (for example for DP AUX transactions) and | 165 | * encoder are flushed (for example for DP AUX transactions) and |
@@ -263,7 +263,7 @@ struct intel_plane_config { | |||
263 | u32 base; | 263 | u32 base; |
264 | }; | 264 | }; |
265 | 265 | ||
266 | struct intel_crtc_config { | 266 | struct intel_crtc_state { |
267 | /** | 267 | /** |
268 | * quirks - bitfield with hw state readout quirks | 268 | * quirks - bitfield with hw state readout quirks |
269 | * | 269 | * |
@@ -477,8 +477,8 @@ struct intel_crtc { | |||
477 | uint32_t cursor_base; | 477 | uint32_t cursor_base; |
478 | 478 | ||
479 | struct intel_plane_config plane_config; | 479 | struct intel_plane_config plane_config; |
480 | struct intel_crtc_config config; | 480 | struct intel_crtc_state config; |
481 | struct intel_crtc_config *new_config; | 481 | struct intel_crtc_state *new_config; |
482 | bool new_enabled; | 482 | bool new_enabled; |
483 | 483 | ||
484 | /* reset counter value when the last flip was submitted */ | 484 | /* reset counter value when the last flip was submitted */ |
@@ -845,11 +845,11 @@ void intel_ddi_prepare_link_retrain(struct drm_encoder *encoder); | |||
845 | bool intel_ddi_connector_get_hw_state(struct intel_connector *intel_connector); | 845 | bool intel_ddi_connector_get_hw_state(struct intel_connector *intel_connector); |
846 | void intel_ddi_fdi_disable(struct drm_crtc *crtc); | 846 | void intel_ddi_fdi_disable(struct drm_crtc *crtc); |
847 | void intel_ddi_get_config(struct intel_encoder *encoder, | 847 | void intel_ddi_get_config(struct intel_encoder *encoder, |
848 | struct intel_crtc_config *pipe_config); | 848 | struct intel_crtc_state *pipe_config); |
849 | 849 | ||
850 | void intel_ddi_init_dp_buf_reg(struct intel_encoder *encoder); | 850 | void intel_ddi_init_dp_buf_reg(struct intel_encoder *encoder); |
851 | void intel_ddi_clock_get(struct intel_encoder *encoder, | 851 | void intel_ddi_clock_get(struct intel_encoder *encoder, |
852 | struct intel_crtc_config *pipe_config); | 852 | struct intel_crtc_state *pipe_config); |
853 | void intel_ddi_set_vc_payload_alloc(struct drm_crtc *crtc, bool state); | 853 | void intel_ddi_set_vc_payload_alloc(struct drm_crtc *crtc, bool state); |
854 | 854 | ||
855 | /* intel_frontbuffer.c */ | 855 | /* intel_frontbuffer.c */ |
@@ -982,11 +982,11 @@ void intel_finish_reset(struct drm_device *dev); | |||
982 | void hsw_enable_pc8(struct drm_i915_private *dev_priv); | 982 | void hsw_enable_pc8(struct drm_i915_private *dev_priv); |
983 | void hsw_disable_pc8(struct drm_i915_private *dev_priv); | 983 | void hsw_disable_pc8(struct drm_i915_private *dev_priv); |
984 | void intel_dp_get_m_n(struct intel_crtc *crtc, | 984 | void intel_dp_get_m_n(struct intel_crtc *crtc, |
985 | struct intel_crtc_config *pipe_config); | 985 | struct intel_crtc_state *pipe_config); |
986 | void intel_dp_set_m_n(struct intel_crtc *crtc); | 986 | void intel_dp_set_m_n(struct intel_crtc *crtc); |
987 | int intel_dotclock_calculate(int link_freq, const struct intel_link_m_n *m_n); | 987 | int intel_dotclock_calculate(int link_freq, const struct intel_link_m_n *m_n); |
988 | void | 988 | void |
989 | ironlake_check_encoder_dotclock(const struct intel_crtc_config *pipe_config, | 989 | ironlake_check_encoder_dotclock(const struct intel_crtc_state *pipe_config, |
990 | int dotclock); | 990 | int dotclock); |
991 | bool intel_crtc_active(struct drm_crtc *crtc); | 991 | bool intel_crtc_active(struct drm_crtc *crtc); |
992 | void hsw_enable_ips(struct intel_crtc *crtc); | 992 | void hsw_enable_ips(struct intel_crtc *crtc); |
@@ -994,7 +994,7 @@ void hsw_disable_ips(struct intel_crtc *crtc); | |||
994 | enum intel_display_power_domain | 994 | enum intel_display_power_domain |
995 | intel_display_port_power_domain(struct intel_encoder *intel_encoder); | 995 | intel_display_port_power_domain(struct intel_encoder *intel_encoder); |
996 | void intel_mode_from_pipe_config(struct drm_display_mode *mode, | 996 | void intel_mode_from_pipe_config(struct drm_display_mode *mode, |
997 | struct intel_crtc_config *pipe_config); | 997 | struct intel_crtc_state *pipe_config); |
998 | int intel_format_to_fourcc(int format); | 998 | int intel_format_to_fourcc(int format); |
999 | void intel_crtc_wait_for_pending_flips(struct drm_crtc *crtc); | 999 | void intel_crtc_wait_for_pending_flips(struct drm_crtc *crtc); |
1000 | void intel_modeset_preclose(struct drm_device *dev, struct drm_file *file); | 1000 | void intel_modeset_preclose(struct drm_device *dev, struct drm_file *file); |
@@ -1011,7 +1011,7 @@ void intel_dp_encoder_destroy(struct drm_encoder *encoder); | |||
1011 | void intel_dp_check_link_status(struct intel_dp *intel_dp); | 1011 | void intel_dp_check_link_status(struct intel_dp *intel_dp); |
1012 | int intel_dp_sink_crc(struct intel_dp *intel_dp, u8 *crc); | 1012 | int intel_dp_sink_crc(struct intel_dp *intel_dp, u8 *crc); |
1013 | bool intel_dp_compute_config(struct intel_encoder *encoder, | 1013 | bool intel_dp_compute_config(struct intel_encoder *encoder, |
1014 | struct intel_crtc_config *pipe_config); | 1014 | struct intel_crtc_state *pipe_config); |
1015 | bool intel_dp_is_edp(struct drm_device *dev, enum port port); | 1015 | bool intel_dp_is_edp(struct drm_device *dev, enum port port); |
1016 | bool intel_dp_hpd_pulse(struct intel_digital_port *intel_dig_port, | 1016 | bool intel_dp_hpd_pulse(struct intel_digital_port *intel_dig_port, |
1017 | bool long_hpd); | 1017 | bool long_hpd); |
@@ -1091,7 +1091,7 @@ void intel_hdmi_init_connector(struct intel_digital_port *intel_dig_port, | |||
1091 | struct intel_connector *intel_connector); | 1091 | struct intel_connector *intel_connector); |
1092 | struct intel_hdmi *enc_to_intel_hdmi(struct drm_encoder *encoder); | 1092 | struct intel_hdmi *enc_to_intel_hdmi(struct drm_encoder *encoder); |
1093 | bool intel_hdmi_compute_config(struct intel_encoder *encoder, | 1093 | bool intel_hdmi_compute_config(struct intel_encoder *encoder, |
1094 | struct intel_crtc_config *pipe_config); | 1094 | struct intel_crtc_state *pipe_config); |
1095 | 1095 | ||
1096 | 1096 | ||
1097 | /* intel_lvds.c */ | 1097 | /* intel_lvds.c */ |
@@ -1126,10 +1126,10 @@ void intel_panel_fini(struct intel_panel *panel); | |||
1126 | void intel_fixed_panel_mode(const struct drm_display_mode *fixed_mode, | 1126 | void intel_fixed_panel_mode(const struct drm_display_mode *fixed_mode, |
1127 | struct drm_display_mode *adjusted_mode); | 1127 | struct drm_display_mode *adjusted_mode); |
1128 | void intel_pch_panel_fitting(struct intel_crtc *crtc, | 1128 | void intel_pch_panel_fitting(struct intel_crtc *crtc, |
1129 | struct intel_crtc_config *pipe_config, | 1129 | struct intel_crtc_state *pipe_config, |
1130 | int fitting_mode); | 1130 | int fitting_mode); |
1131 | void intel_gmch_panel_fitting(struct intel_crtc *crtc, | 1131 | void intel_gmch_panel_fitting(struct intel_crtc *crtc, |
1132 | struct intel_crtc_config *pipe_config, | 1132 | struct intel_crtc_state *pipe_config, |
1133 | int fitting_mode); | 1133 | int fitting_mode); |
1134 | void intel_panel_set_backlight_acpi(struct intel_connector *connector, | 1134 | void intel_panel_set_backlight_acpi(struct intel_connector *connector, |
1135 | u32 level, u32 max); | 1135 | u32 level, u32 max); |