aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau
diff options
context:
space:
mode:
authorRob Clark <rob@ti.com>2012-10-11 21:42:04 -0400
committerRob Clark <robdclark@gmail.com>2012-11-30 11:30:48 -0500
commit2db83827dc7679c1f4925bb116e1f7deb13192e2 (patch)
tree57fdb7defe858a58250c6d269571839da1d3a529 /drivers/gpu/drm/nouveau
parent6de6d8463002b490b1cdc62f4d29c45430f2da85 (diff)
drm/nouveau: drm_connector_property -> drm_object_property
Signed-off-by: Rob Clark <rob@ti.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_connector.c22
-rw-r--r--drivers/gpu/drm/nouveau/nv17_tv.c16
2 files changed, 19 insertions, 19 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/nouveau/nouveau_connector.c
index 98d7e9238f6..29a913460fe 100644
--- a/drivers/gpu/drm/nouveau/nouveau_connector.c
+++ b/drivers/gpu/drm/nouveau/nouveau_connector.c
@@ -220,7 +220,7 @@ nouveau_connector_set_encoder(struct drm_connector *connector,
220 } 220 }
221 221
222 if (nv_connector->type == DCB_CONNECTOR_DVI_I) { 222 if (nv_connector->type == DCB_CONNECTOR_DVI_I) {
223 drm_connector_property_set_value(connector, 223 drm_object_property_set_value(&connector->base,
224 dev->mode_config.dvi_i_subconnector_property, 224 dev->mode_config.dvi_i_subconnector_property,
225 nv_encoder->dcb->type == DCB_OUTPUT_TMDS ? 225 nv_encoder->dcb->type == DCB_OUTPUT_TMDS ?
226 DRM_MODE_SUBCONNECTOR_DVID : 226 DRM_MODE_SUBCONNECTOR_DVID :
@@ -1040,7 +1040,7 @@ nouveau_connector_create(struct drm_device *dev, int index)
1040 1040
1041 /* Init DVI-I specific properties */ 1041 /* Init DVI-I specific properties */
1042 if (nv_connector->type == DCB_CONNECTOR_DVI_I) 1042 if (nv_connector->type == DCB_CONNECTOR_DVI_I)
1043 drm_connector_attach_property(connector, dev->mode_config.dvi_i_subconnector_property, 0); 1043 drm_object_attach_property(&connector->base, dev->mode_config.dvi_i_subconnector_property, 0);
1044 1044
1045 /* Add overscan compensation options to digital outputs */ 1045 /* Add overscan compensation options to digital outputs */
1046 if (disp->underscan_property && 1046 if (disp->underscan_property &&
@@ -1048,31 +1048,31 @@ nouveau_connector_create(struct drm_device *dev, int index)
1048 type == DRM_MODE_CONNECTOR_DVII || 1048 type == DRM_MODE_CONNECTOR_DVII ||
1049 type == DRM_MODE_CONNECTOR_HDMIA || 1049 type == DRM_MODE_CONNECTOR_HDMIA ||
1050 type == DRM_MODE_CONNECTOR_DisplayPort)) { 1050 type == DRM_MODE_CONNECTOR_DisplayPort)) {
1051 drm_connector_attach_property(connector, 1051 drm_object_attach_property(&connector->base,
1052 disp->underscan_property, 1052 disp->underscan_property,
1053 UNDERSCAN_OFF); 1053 UNDERSCAN_OFF);
1054 drm_connector_attach_property(connector, 1054 drm_object_attach_property(&connector->base,
1055 disp->underscan_hborder_property, 1055 disp->underscan_hborder_property,
1056 0); 1056 0);
1057 drm_connector_attach_property(connector, 1057 drm_object_attach_property(&connector->base,
1058 disp->underscan_vborder_property, 1058 disp->underscan_vborder_property,
1059 0); 1059 0);
1060 } 1060 }
1061 1061
1062 /* Add hue and saturation options */ 1062 /* Add hue and saturation options */
1063 if (disp->vibrant_hue_property) 1063 if (disp->vibrant_hue_property)
1064 drm_connector_attach_property(connector, 1064 drm_object_attach_property(&connector->base,
1065 disp->vibrant_hue_property, 1065 disp->vibrant_hue_property,
1066 90); 1066 90);
1067 if (disp->color_vibrance_property) 1067 if (disp->color_vibrance_property)
1068 drm_connector_attach_property(connector, 1068 drm_object_attach_property(&connector->base,
1069 disp->color_vibrance_property, 1069 disp->color_vibrance_property,
1070 150); 1070 150);
1071 1071
1072 switch (nv_connector->type) { 1072 switch (nv_connector->type) {
1073 case DCB_CONNECTOR_VGA: 1073 case DCB_CONNECTOR_VGA:
1074 if (nv_device(drm->device)->card_type >= NV_50) { 1074 if (nv_device(drm->device)->card_type >= NV_50) {
1075 drm_connector_attach_property(connector, 1075 drm_object_attach_property(&connector->base,
1076 dev->mode_config.scaling_mode_property, 1076 dev->mode_config.scaling_mode_property,
1077 nv_connector->scaling_mode); 1077 nv_connector->scaling_mode);
1078 } 1078 }
@@ -1085,18 +1085,18 @@ nouveau_connector_create(struct drm_device *dev, int index)
1085 default: 1085 default:
1086 nv_connector->scaling_mode = DRM_MODE_SCALE_FULLSCREEN; 1086 nv_connector->scaling_mode = DRM_MODE_SCALE_FULLSCREEN;
1087 1087
1088 drm_connector_attach_property(connector, 1088 drm_object_attach_property(&connector->base,
1089 dev->mode_config.scaling_mode_property, 1089 dev->mode_config.scaling_mode_property,
1090 nv_connector->scaling_mode); 1090 nv_connector->scaling_mode);
1091 if (disp->dithering_mode) { 1091 if (disp->dithering_mode) {
1092 nv_connector->dithering_mode = DITHERING_MODE_AUTO; 1092 nv_connector->dithering_mode = DITHERING_MODE_AUTO;
1093 drm_connector_attach_property(connector, 1093 drm_object_attach_property(&connector->base,
1094 disp->dithering_mode, 1094 disp->dithering_mode,
1095 nv_connector->dithering_mode); 1095 nv_connector->dithering_mode);
1096 } 1096 }
1097 if (disp->dithering_depth) { 1097 if (disp->dithering_depth) {
1098 nv_connector->dithering_depth = DITHERING_DEPTH_AUTO; 1098 nv_connector->dithering_depth = DITHERING_DEPTH_AUTO;
1099 drm_connector_attach_property(connector, 1099 drm_object_attach_property(&connector->base,
1100 disp->dithering_depth, 1100 disp->dithering_depth,
1101 nv_connector->dithering_depth); 1101 nv_connector->dithering_depth);
1102 } 1102 }
diff --git a/drivers/gpu/drm/nouveau/nv17_tv.c b/drivers/gpu/drm/nouveau/nv17_tv.c
index 897b63621e2..2ca276ada50 100644
--- a/drivers/gpu/drm/nouveau/nv17_tv.c
+++ b/drivers/gpu/drm/nouveau/nv17_tv.c
@@ -195,7 +195,7 @@ nv17_tv_detect(struct drm_encoder *encoder, struct drm_connector *connector)
195 break; 195 break;
196 } 196 }
197 197
198 drm_connector_property_set_value(connector, 198 drm_object_property_set_value(&connector->base,
199 conf->tv_subconnector_property, 199 conf->tv_subconnector_property,
200 tv_enc->subconnector); 200 tv_enc->subconnector);
201 201
@@ -672,25 +672,25 @@ static int nv17_tv_create_resources(struct drm_encoder *encoder,
672 672
673 drm_mode_create_tv_properties(dev, num_tv_norms, nv17_tv_norm_names); 673 drm_mode_create_tv_properties(dev, num_tv_norms, nv17_tv_norm_names);
674 674
675 drm_connector_attach_property(connector, 675 drm_object_attach_property(&connector->base,
676 conf->tv_select_subconnector_property, 676 conf->tv_select_subconnector_property,
677 tv_enc->select_subconnector); 677 tv_enc->select_subconnector);
678 drm_connector_attach_property(connector, 678 drm_object_attach_property(&connector->base,
679 conf->tv_subconnector_property, 679 conf->tv_subconnector_property,
680 tv_enc->subconnector); 680 tv_enc->subconnector);
681 drm_connector_attach_property(connector, 681 drm_object_attach_property(&connector->base,
682 conf->tv_mode_property, 682 conf->tv_mode_property,
683 tv_enc->tv_norm); 683 tv_enc->tv_norm);
684 drm_connector_attach_property(connector, 684 drm_object_attach_property(&connector->base,
685 conf->tv_flicker_reduction_property, 685 conf->tv_flicker_reduction_property,
686 tv_enc->flicker); 686 tv_enc->flicker);
687 drm_connector_attach_property(connector, 687 drm_object_attach_property(&connector->base,
688 conf->tv_saturation_property, 688 conf->tv_saturation_property,
689 tv_enc->saturation); 689 tv_enc->saturation);
690 drm_connector_attach_property(connector, 690 drm_object_attach_property(&connector->base,
691 conf->tv_hue_property, 691 conf->tv_hue_property,
692 tv_enc->hue); 692 tv_enc->hue);
693 drm_connector_attach_property(connector, 693 drm_object_attach_property(&connector->base,
694 conf->tv_overscan_property, 694 conf->tv_overscan_property,
695 tv_enc->overscan); 695 tv_enc->overscan);
696 696