diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_connectors.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_connectors.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c index 748c5f229c28..69a142fc3d1d 100644 --- a/drivers/gpu/drm/radeon/radeon_connectors.c +++ b/drivers/gpu/drm/radeon/radeon_connectors.c | |||
@@ -194,7 +194,7 @@ radeon_connector_update_scratch_regs(struct drm_connector *connector, enum drm_c | |||
194 | } | 194 | } |
195 | } | 195 | } |
196 | 196 | ||
197 | struct drm_encoder *radeon_find_encoder(struct drm_connector *connector, int encoder_type) | 197 | static struct drm_encoder *radeon_find_encoder(struct drm_connector *connector, int encoder_type) |
198 | { | 198 | { |
199 | struct drm_mode_object *obj; | 199 | struct drm_mode_object *obj; |
200 | struct drm_encoder *encoder; | 200 | struct drm_encoder *encoder; |
@@ -215,7 +215,7 @@ struct drm_encoder *radeon_find_encoder(struct drm_connector *connector, int enc | |||
215 | return NULL; | 215 | return NULL; |
216 | } | 216 | } |
217 | 217 | ||
218 | struct drm_encoder *radeon_best_single_encoder(struct drm_connector *connector) | 218 | static struct drm_encoder *radeon_best_single_encoder(struct drm_connector *connector) |
219 | { | 219 | { |
220 | int enc_id = connector->encoder_ids[0]; | 220 | int enc_id = connector->encoder_ids[0]; |
221 | struct drm_mode_object *obj; | 221 | struct drm_mode_object *obj; |
@@ -366,7 +366,7 @@ static void radeon_add_common_modes(struct drm_encoder *encoder, struct drm_conn | |||
366 | } | 366 | } |
367 | } | 367 | } |
368 | 368 | ||
369 | int radeon_connector_set_property(struct drm_connector *connector, struct drm_property *property, | 369 | static int radeon_connector_set_property(struct drm_connector *connector, struct drm_property *property, |
370 | uint64_t val) | 370 | uint64_t val) |
371 | { | 371 | { |
372 | struct drm_device *dev = connector->dev; | 372 | struct drm_device *dev = connector->dev; |
@@ -687,13 +687,13 @@ static int radeon_lvds_set_property(struct drm_connector *connector, | |||
687 | } | 687 | } |
688 | 688 | ||
689 | 689 | ||
690 | struct drm_connector_helper_funcs radeon_lvds_connector_helper_funcs = { | 690 | static const struct drm_connector_helper_funcs radeon_lvds_connector_helper_funcs = { |
691 | .get_modes = radeon_lvds_get_modes, | 691 | .get_modes = radeon_lvds_get_modes, |
692 | .mode_valid = radeon_lvds_mode_valid, | 692 | .mode_valid = radeon_lvds_mode_valid, |
693 | .best_encoder = radeon_best_single_encoder, | 693 | .best_encoder = radeon_best_single_encoder, |
694 | }; | 694 | }; |
695 | 695 | ||
696 | struct drm_connector_funcs radeon_lvds_connector_funcs = { | 696 | static const struct drm_connector_funcs radeon_lvds_connector_funcs = { |
697 | .dpms = drm_helper_connector_dpms, | 697 | .dpms = drm_helper_connector_dpms, |
698 | .detect = radeon_lvds_detect, | 698 | .detect = radeon_lvds_detect, |
699 | .fill_modes = drm_helper_probe_single_connector_modes, | 699 | .fill_modes = drm_helper_probe_single_connector_modes, |
@@ -805,13 +805,13 @@ radeon_vga_detect(struct drm_connector *connector, bool force) | |||
805 | return ret; | 805 | return ret; |
806 | } | 806 | } |
807 | 807 | ||
808 | struct drm_connector_helper_funcs radeon_vga_connector_helper_funcs = { | 808 | static const struct drm_connector_helper_funcs radeon_vga_connector_helper_funcs = { |
809 | .get_modes = radeon_vga_get_modes, | 809 | .get_modes = radeon_vga_get_modes, |
810 | .mode_valid = radeon_vga_mode_valid, | 810 | .mode_valid = radeon_vga_mode_valid, |
811 | .best_encoder = radeon_best_single_encoder, | 811 | .best_encoder = radeon_best_single_encoder, |
812 | }; | 812 | }; |
813 | 813 | ||
814 | struct drm_connector_funcs radeon_vga_connector_funcs = { | 814 | static const struct drm_connector_funcs radeon_vga_connector_funcs = { |
815 | .dpms = drm_helper_connector_dpms, | 815 | .dpms = drm_helper_connector_dpms, |
816 | .detect = radeon_vga_detect, | 816 | .detect = radeon_vga_detect, |
817 | .fill_modes = drm_helper_probe_single_connector_modes, | 817 | .fill_modes = drm_helper_probe_single_connector_modes, |
@@ -875,13 +875,13 @@ radeon_tv_detect(struct drm_connector *connector, bool force) | |||
875 | return ret; | 875 | return ret; |
876 | } | 876 | } |
877 | 877 | ||
878 | struct drm_connector_helper_funcs radeon_tv_connector_helper_funcs = { | 878 | static const struct drm_connector_helper_funcs radeon_tv_connector_helper_funcs = { |
879 | .get_modes = radeon_tv_get_modes, | 879 | .get_modes = radeon_tv_get_modes, |
880 | .mode_valid = radeon_tv_mode_valid, | 880 | .mode_valid = radeon_tv_mode_valid, |
881 | .best_encoder = radeon_best_single_encoder, | 881 | .best_encoder = radeon_best_single_encoder, |
882 | }; | 882 | }; |
883 | 883 | ||
884 | struct drm_connector_funcs radeon_tv_connector_funcs = { | 884 | static const struct drm_connector_funcs radeon_tv_connector_funcs = { |
885 | .dpms = drm_helper_connector_dpms, | 885 | .dpms = drm_helper_connector_dpms, |
886 | .detect = radeon_tv_detect, | 886 | .detect = radeon_tv_detect, |
887 | .fill_modes = drm_helper_probe_single_connector_modes, | 887 | .fill_modes = drm_helper_probe_single_connector_modes, |
@@ -1085,7 +1085,7 @@ out: | |||
1085 | } | 1085 | } |
1086 | 1086 | ||
1087 | /* okay need to be smart in here about which encoder to pick */ | 1087 | /* okay need to be smart in here about which encoder to pick */ |
1088 | struct drm_encoder *radeon_dvi_encoder(struct drm_connector *connector) | 1088 | static struct drm_encoder *radeon_dvi_encoder(struct drm_connector *connector) |
1089 | { | 1089 | { |
1090 | int enc_id = connector->encoder_ids[0]; | 1090 | int enc_id = connector->encoder_ids[0]; |
1091 | struct radeon_connector *radeon_connector = to_radeon_connector(connector); | 1091 | struct radeon_connector *radeon_connector = to_radeon_connector(connector); |
@@ -1175,13 +1175,13 @@ static int radeon_dvi_mode_valid(struct drm_connector *connector, | |||
1175 | return MODE_OK; | 1175 | return MODE_OK; |
1176 | } | 1176 | } |
1177 | 1177 | ||
1178 | struct drm_connector_helper_funcs radeon_dvi_connector_helper_funcs = { | 1178 | static const struct drm_connector_helper_funcs radeon_dvi_connector_helper_funcs = { |
1179 | .get_modes = radeon_dvi_get_modes, | 1179 | .get_modes = radeon_dvi_get_modes, |
1180 | .mode_valid = radeon_dvi_mode_valid, | 1180 | .mode_valid = radeon_dvi_mode_valid, |
1181 | .best_encoder = radeon_dvi_encoder, | 1181 | .best_encoder = radeon_dvi_encoder, |
1182 | }; | 1182 | }; |
1183 | 1183 | ||
1184 | struct drm_connector_funcs radeon_dvi_connector_funcs = { | 1184 | static const struct drm_connector_funcs radeon_dvi_connector_funcs = { |
1185 | .dpms = drm_helper_connector_dpms, | 1185 | .dpms = drm_helper_connector_dpms, |
1186 | .detect = radeon_dvi_detect, | 1186 | .detect = radeon_dvi_detect, |
1187 | .fill_modes = drm_helper_probe_single_connector_modes, | 1187 | .fill_modes = drm_helper_probe_single_connector_modes, |
@@ -1458,13 +1458,13 @@ static int radeon_dp_mode_valid(struct drm_connector *connector, | |||
1458 | } | 1458 | } |
1459 | } | 1459 | } |
1460 | 1460 | ||
1461 | struct drm_connector_helper_funcs radeon_dp_connector_helper_funcs = { | 1461 | static const struct drm_connector_helper_funcs radeon_dp_connector_helper_funcs = { |
1462 | .get_modes = radeon_dp_get_modes, | 1462 | .get_modes = radeon_dp_get_modes, |
1463 | .mode_valid = radeon_dp_mode_valid, | 1463 | .mode_valid = radeon_dp_mode_valid, |
1464 | .best_encoder = radeon_dvi_encoder, | 1464 | .best_encoder = radeon_dvi_encoder, |
1465 | }; | 1465 | }; |
1466 | 1466 | ||
1467 | struct drm_connector_funcs radeon_dp_connector_funcs = { | 1467 | static const struct drm_connector_funcs radeon_dp_connector_funcs = { |
1468 | .dpms = drm_helper_connector_dpms, | 1468 | .dpms = drm_helper_connector_dpms, |
1469 | .detect = radeon_dp_detect, | 1469 | .detect = radeon_dp_detect, |
1470 | .fill_modes = drm_helper_probe_single_connector_modes, | 1470 | .fill_modes = drm_helper_probe_single_connector_modes, |