aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2016-04-21 19:09:41 -0400
committerBen Skeggs <bskeggs@redhat.com>2016-04-21 19:24:31 -0400
commit38bdcfc1fc734a91fd982fe32290f3f70612bf33 (patch)
tree3f7c34f8d60c98c6af5d12bdcab4027530309b43
parent34440ed697aed2588d3e99bbdc75700a967bd1bd (diff)
drm/nouveau/kms: fix setting of default values for dithering properties
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_connector.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/nouveau/nouveau_connector.c
index ae96ebc490fb..e81aefe5ffa7 100644
--- a/drivers/gpu/drm/nouveau/nouveau_connector.c
+++ b/drivers/gpu/drm/nouveau/nouveau_connector.c
@@ -1276,18 +1276,18 @@ nouveau_connector_create(struct drm_device *dev, int index)
1276 break; 1276 break;
1277 default: 1277 default:
1278 if (disp->dithering_mode) { 1278 if (disp->dithering_mode) {
1279 nv_connector->dithering_mode = DITHERING_MODE_AUTO;
1279 drm_object_attach_property(&connector->base, 1280 drm_object_attach_property(&connector->base,
1280 disp->dithering_mode, 1281 disp->dithering_mode,
1281 nv_connector-> 1282 nv_connector->
1282 dithering_mode); 1283 dithering_mode);
1283 nv_connector->dithering_mode = DITHERING_MODE_AUTO;
1284 } 1284 }
1285 if (disp->dithering_depth) { 1285 if (disp->dithering_depth) {
1286 nv_connector->dithering_depth = DITHERING_DEPTH_AUTO;
1286 drm_object_attach_property(&connector->base, 1287 drm_object_attach_property(&connector->base,
1287 disp->dithering_depth, 1288 disp->dithering_depth,
1288 nv_connector-> 1289 nv_connector->
1289 dithering_depth); 1290 dithering_depth);
1290 nv_connector->dithering_depth = DITHERING_DEPTH_AUTO;
1291 } 1291 }
1292 break; 1292 break;
1293 } 1293 }