Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aaed1aa5 authored by Tvrtko Ursulin's avatar Tvrtko Ursulin Committed by Daniel Vetter
Browse files

drm/i915: Rotation property is now handled in DRM core



So no need to have code which never gets called in the driver.

Signed-off-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 4cda09ca
Loading
Loading
Loading
Loading
+4 −20
Original line number Diff line number Diff line
@@ -203,18 +203,10 @@ intel_plane_atomic_get_property(struct drm_plane *plane,
				struct drm_property *property,
				uint64_t *val)
{
	struct drm_mode_config *config = &plane->dev->mode_config;

	if (property == config->rotation_property) {
		*val = state->rotation;
	} else {
	DRM_DEBUG_KMS("Unknown plane property '%s'\n", property->name);
	return -EINVAL;
}

	return 0;
}

/**
 * intel_plane_atomic_set_property - set plane property value
 * @plane: plane to set property for
@@ -233,14 +225,6 @@ intel_plane_atomic_set_property(struct drm_plane *plane,
				struct drm_property *property,
				uint64_t val)
{
	struct drm_mode_config *config = &plane->dev->mode_config;

	if (property == config->rotation_property) {
		state->rotation = val;
	} else {
	DRM_DEBUG_KMS("Unknown plane property '%s'\n", property->name);
	return -EINVAL;
}

	return 0;
}