hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/gpu/drm/drm_atomic_uapi.c
....@@ -459,16 +459,6 @@
459459 &replaced);
460460 state->color_mgmt_changed |= replaced;
461461 return ret;
462
-#if defined(CONFIG_ROCKCHIP_DRM_CUBIC_LUT)
463
- } else if (property == config->cubic_lut_property) {
464
- ret = drm_atomic_replace_property_blob_from_id(dev,
465
- &state->cubic_lut,
466
- val,
467
- -1, sizeof(struct drm_color_lut),
468
- &replaced);
469
- state->color_mgmt_changed |= replaced;
470
- return ret;
471
-#endif
472462 } else if (property == config->prop_out_fence_ptr) {
473463 s32 __user *fence_ptr = u64_to_user_ptr(val);
474464
....@@ -511,10 +501,6 @@
511501 *val = (state->ctm) ? state->ctm->base.id : 0;
512502 else if (property == config->gamma_lut_property)
513503 *val = (state->gamma_lut) ? state->gamma_lut->base.id : 0;
514
-#if defined(CONFIG_ROCKCHIP_DRM_CUBIC_LUT)
515
- else if (property == config->cubic_lut_property)
516
- *val = (state->cubic_lut) ? state->cubic_lut->base.id : 0;
517
-#endif
518504 else if (property == config->prop_out_fence_ptr)
519505 *val = 0;
520506 else if (crtc->funcs->atomic_get_property)