-static int intel_lvds_set_property(struct drm_connector *connector,
- struct drm_property *property,
- uint64_t value)
-{
-
- if (property == connector->scaling_mode_property) {
- struct drm_crtc *crtc;
-
- if (connector->state->scaling_mode == value) {
- /* the LVDS scaling property is not changed */
- return 0;
- }
- connector->state->scaling_mode = value;
-
- crtc = intel_attached_encoder(connector)->base.crtc;
- if (crtc && crtc->state->enable) {
- /*
- * If the CRTC is enabled, the display will be changed
- * according to the new panel fitting mode.
- */
- intel_crtc_restore_mode(crtc);
- }
- }
-
- return 0;
-}
-