aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r--drivers/gpu/drm/radeon/atombios_crtc.c2
-rw-r--r--drivers/gpu/drm/radeon/atombios_dp.c2
-rw-r--r--drivers/gpu/drm/radeon/atombios_encoders.c4
-rw-r--r--drivers/gpu/drm/radeon/radeon_display.c4
-rw-r--r--drivers/gpu/drm/radeon/radeon_legacy_crtc.c2
-rw-r--r--drivers/gpu/drm/radeon/radeon_legacy_encoders.c2
-rw-r--r--drivers/gpu/drm/radeon/radeon_mode.h4
7 files changed, 10 insertions, 10 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c
index a4664e015a6f..9e6f76fec527 100644
--- a/drivers/gpu/drm/radeon/atombios_crtc.c
+++ b/drivers/gpu/drm/radeon/atombios_crtc.c
@@ -1624,7 +1624,7 @@ int atombios_crtc_mode_set(struct drm_crtc *crtc,
1624} 1624}
1625 1625
1626static bool atombios_crtc_mode_fixup(struct drm_crtc *crtc, 1626static bool atombios_crtc_mode_fixup(struct drm_crtc *crtc,
1627 struct drm_display_mode *mode, 1627 const struct drm_display_mode *mode,
1628 struct drm_display_mode *adjusted_mode) 1628 struct drm_display_mode *adjusted_mode)
1629{ 1629{
1630 if (!radeon_crtc_scaling_mode_fixup(crtc, mode, adjusted_mode)) 1630 if (!radeon_crtc_scaling_mode_fixup(crtc, mode, adjusted_mode))
diff --git a/drivers/gpu/drm/radeon/atombios_dp.c b/drivers/gpu/drm/radeon/atombios_dp.c
index 5131b3b0f7d2..0355536f61e4 100644
--- a/drivers/gpu/drm/radeon/atombios_dp.c
+++ b/drivers/gpu/drm/radeon/atombios_dp.c
@@ -608,7 +608,7 @@ int radeon_dp_get_panel_mode(struct drm_encoder *encoder,
608} 608}
609 609
610void radeon_dp_set_link_config(struct drm_connector *connector, 610void radeon_dp_set_link_config(struct drm_connector *connector,
611 struct drm_display_mode *mode) 611 const struct drm_display_mode *mode)
612{ 612{
613 struct radeon_connector *radeon_connector = to_radeon_connector(connector); 613 struct radeon_connector *radeon_connector = to_radeon_connector(connector);
614 struct radeon_connector_atom_dig *dig_connector; 614 struct radeon_connector_atom_dig *dig_connector;
diff --git a/drivers/gpu/drm/radeon/atombios_encoders.c b/drivers/gpu/drm/radeon/atombios_encoders.c
index 486ccdf4aacd..7dfc62fae6a6 100644
--- a/drivers/gpu/drm/radeon/atombios_encoders.c
+++ b/drivers/gpu/drm/radeon/atombios_encoders.c
@@ -58,7 +58,7 @@ static inline bool radeon_encoder_is_digital(struct drm_encoder *encoder)
58} 58}
59 59
60static bool radeon_atom_mode_fixup(struct drm_encoder *encoder, 60static bool radeon_atom_mode_fixup(struct drm_encoder *encoder,
61 struct drm_display_mode *mode, 61 const struct drm_display_mode *mode,
62 struct drm_display_mode *adjusted_mode) 62 struct drm_display_mode *adjusted_mode)
63{ 63{
64 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); 64 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder);
@@ -2234,7 +2234,7 @@ radeon_atom_ext_dpms(struct drm_encoder *encoder, int mode)
2234} 2234}
2235 2235
2236static bool radeon_atom_ext_mode_fixup(struct drm_encoder *encoder, 2236static bool radeon_atom_ext_mode_fixup(struct drm_encoder *encoder,
2237 struct drm_display_mode *mode, 2237 const struct drm_display_mode *mode,
2238 struct drm_display_mode *adjusted_mode) 2238 struct drm_display_mode *adjusted_mode)
2239{ 2239{
2240 return true; 2240 return true;
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c
index 64a008d14493..7ddef8f30d0e 100644
--- a/drivers/gpu/drm/radeon/radeon_display.c
+++ b/drivers/gpu/drm/radeon/radeon_display.c
@@ -1401,7 +1401,7 @@ void radeon_modeset_fini(struct radeon_device *rdev)
1401 radeon_i2c_fini(rdev); 1401 radeon_i2c_fini(rdev);
1402} 1402}
1403 1403
1404static bool is_hdtv_mode(struct drm_display_mode *mode) 1404static bool is_hdtv_mode(const struct drm_display_mode *mode)
1405{ 1405{
1406 /* try and guess if this is a tv or a monitor */ 1406 /* try and guess if this is a tv or a monitor */
1407 if ((mode->vdisplay == 480 && mode->hdisplay == 720) || /* 480p */ 1407 if ((mode->vdisplay == 480 && mode->hdisplay == 720) || /* 480p */
@@ -1414,7 +1414,7 @@ static bool is_hdtv_mode(struct drm_display_mode *mode)
1414} 1414}
1415 1415
1416bool radeon_crtc_scaling_mode_fixup(struct drm_crtc *crtc, 1416bool radeon_crtc_scaling_mode_fixup(struct drm_crtc *crtc,
1417 struct drm_display_mode *mode, 1417 const struct drm_display_mode *mode,
1418 struct drm_display_mode *adjusted_mode) 1418 struct drm_display_mode *adjusted_mode)
1419{ 1419{
1420 struct drm_device *dev = crtc->dev; 1420 struct drm_device *dev = crtc->dev;
diff --git a/drivers/gpu/drm/radeon/radeon_legacy_crtc.c b/drivers/gpu/drm/radeon/radeon_legacy_crtc.c
index 210317c7045e..d5fd615897ec 100644
--- a/drivers/gpu/drm/radeon/radeon_legacy_crtc.c
+++ b/drivers/gpu/drm/radeon/radeon_legacy_crtc.c
@@ -990,7 +990,7 @@ static void radeon_set_pll(struct drm_crtc *crtc, struct drm_display_mode *mode)
990} 990}
991 991
992static bool radeon_crtc_mode_fixup(struct drm_crtc *crtc, 992static bool radeon_crtc_mode_fixup(struct drm_crtc *crtc,
993 struct drm_display_mode *mode, 993 const struct drm_display_mode *mode,
994 struct drm_display_mode *adjusted_mode) 994 struct drm_display_mode *adjusted_mode)
995{ 995{
996 if (!radeon_crtc_scaling_mode_fixup(crtc, mode, adjusted_mode)) 996 if (!radeon_crtc_scaling_mode_fixup(crtc, mode, adjusted_mode))
diff --git a/drivers/gpu/drm/radeon/radeon_legacy_encoders.c b/drivers/gpu/drm/radeon/radeon_legacy_encoders.c
index a0c82229e8f0..670e9910f869 100644
--- a/drivers/gpu/drm/radeon/radeon_legacy_encoders.c
+++ b/drivers/gpu/drm/radeon/radeon_legacy_encoders.c
@@ -244,7 +244,7 @@ static void radeon_legacy_lvds_mode_set(struct drm_encoder *encoder,
244} 244}
245 245
246static bool radeon_legacy_mode_fixup(struct drm_encoder *encoder, 246static bool radeon_legacy_mode_fixup(struct drm_encoder *encoder,
247 struct drm_display_mode *mode, 247 const struct drm_display_mode *mode,
248 struct drm_display_mode *adjusted_mode) 248 struct drm_display_mode *adjusted_mode)
249{ 249{
250 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder); 250 struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder);
diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h
index 5b10ffd7bb2f..f380d59c5763 100644
--- a/drivers/gpu/drm/radeon/radeon_mode.h
+++ b/drivers/gpu/drm/radeon/radeon_mode.h
@@ -488,7 +488,7 @@ extern void radeon_connector_hotplug(struct drm_connector *connector);
488extern int radeon_dp_mode_valid_helper(struct drm_connector *connector, 488extern int radeon_dp_mode_valid_helper(struct drm_connector *connector,
489 struct drm_display_mode *mode); 489 struct drm_display_mode *mode);
490extern void radeon_dp_set_link_config(struct drm_connector *connector, 490extern void radeon_dp_set_link_config(struct drm_connector *connector,
491 struct drm_display_mode *mode); 491 const struct drm_display_mode *mode);
492extern void radeon_dp_link_train(struct drm_encoder *encoder, 492extern void radeon_dp_link_train(struct drm_encoder *encoder,
493 struct drm_connector *connector); 493 struct drm_connector *connector);
494extern bool radeon_dp_needs_link_train(struct radeon_connector *radeon_connector); 494extern bool radeon_dp_needs_link_train(struct radeon_connector *radeon_connector);
@@ -678,7 +678,7 @@ void radeon_enc_destroy(struct drm_encoder *encoder);
678void radeon_copy_fb(struct drm_device *dev, struct drm_gem_object *dst_obj); 678void radeon_copy_fb(struct drm_device *dev, struct drm_gem_object *dst_obj);
679void radeon_combios_asic_init(struct drm_device *dev); 679void radeon_combios_asic_init(struct drm_device *dev);
680bool radeon_crtc_scaling_mode_fixup(struct drm_crtc *crtc, 680bool radeon_crtc_scaling_mode_fixup(struct drm_crtc *crtc,
681 struct drm_display_mode *mode, 681 const struct drm_display_mode *mode,
682 struct drm_display_mode *adjusted_mode); 682 struct drm_display_mode *adjusted_mode);
683void radeon_panel_mode_fixup(struct drm_encoder *encoder, 683void radeon_panel_mode_fixup(struct drm_encoder *encoder,
684 struct drm_display_mode *adjusted_mode); 684 struct drm_display_mode *adjusted_mode);