aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/drm_crtc.c31
-rw-r--r--include/drm/drm_crtc.h1
2 files changed, 0 insertions, 32 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index a6917645fb4a..ffb791f95d45 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -125,13 +125,6 @@ static const struct drm_prop_enum_list drm_scaling_mode_enum_list[] =
125 { DRM_MODE_SCALE_ASPECT, "Full aspect" }, 125 { DRM_MODE_SCALE_ASPECT, "Full aspect" },
126}; 126};
127 127
128static const struct drm_prop_enum_list drm_dithering_mode_enum_list[] =
129{
130 { DRM_MODE_DITHERING_OFF, "Off" },
131 { DRM_MODE_DITHERING_ON, "On" },
132 { DRM_MODE_DITHERING_AUTO, "Automatic" },
133};
134
135/* 128/*
136 * Non-global properties, but "required" for certain connectors. 129 * Non-global properties, but "required" for certain connectors.
137 */ 130 */
@@ -1161,30 +1154,6 @@ int drm_mode_create_scaling_mode_property(struct drm_device *dev)
1161EXPORT_SYMBOL(drm_mode_create_scaling_mode_property); 1154EXPORT_SYMBOL(drm_mode_create_scaling_mode_property);
1162 1155
1163/** 1156/**
1164 * drm_mode_create_dithering_property - create dithering property
1165 * @dev: DRM device
1166 *
1167 * Called by a driver the first time it's needed, must be attached to desired
1168 * connectors.
1169 */
1170int drm_mode_create_dithering_property(struct drm_device *dev)
1171{
1172 struct drm_property *dithering_mode;
1173
1174 if (dev->mode_config.dithering_mode_property)
1175 return 0;
1176
1177 dithering_mode =
1178 drm_property_create_enum(dev, 0, "dithering",
1179 drm_dithering_mode_enum_list,
1180 ARRAY_SIZE(drm_dithering_mode_enum_list));
1181 dev->mode_config.dithering_mode_property = dithering_mode;
1182
1183 return 0;
1184}
1185EXPORT_SYMBOL(drm_mode_create_dithering_property);
1186
1187/**
1188 * drm_mode_create_dirty_property - create dirty property 1157 * drm_mode_create_dirty_property - create dirty property
1189 * @dev: DRM device 1158 * @dev: DRM device
1190 * 1159 *
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index eb40a967fc65..781988f637ec 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -982,7 +982,6 @@ extern int drm_mode_create_dvi_i_properties(struct drm_device *dev);
982extern int drm_mode_create_tv_properties(struct drm_device *dev, int num_formats, 982extern int drm_mode_create_tv_properties(struct drm_device *dev, int num_formats,
983 char *formats[]); 983 char *formats[]);
984extern int drm_mode_create_scaling_mode_property(struct drm_device *dev); 984extern int drm_mode_create_scaling_mode_property(struct drm_device *dev);
985extern int drm_mode_create_dithering_property(struct drm_device *dev);
986extern int drm_mode_create_dirty_info_property(struct drm_device *dev); 985extern int drm_mode_create_dirty_info_property(struct drm_device *dev);
987extern const char *drm_get_encoder_name(const struct drm_encoder *encoder); 986extern const char *drm_get_encoder_name(const struct drm_encoder *encoder);
988 987