]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm: mali-dp: Add support for setting plane's rotation property from userspace.
authorLiviu Dudau <Liviu.Dudau@arm.com>
Mon, 24 Oct 2016 17:35:09 +0000 (18:35 +0100)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Fri, 4 Nov 2016 17:10:42 +0000 (17:10 +0000)
In order to support DRM_IOCTL_MODE_OBJ_SETPROPERTY for the rotation property
we need to have a ->set_property hook defined for the planes. Set the
plane's ->set_property hook to drm_atomic_helper_plane_set_property()

Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
drivers/gpu/drm/arm/malidp_planes.c

index bb1c52864f138401ec0fc2fafa917adb6a804b69..8eef9a891261cd64b0365e51a768429c88a13df8 100644 (file)
@@ -89,6 +89,7 @@ void malidp_destroy_plane_state(struct drm_plane *plane,
 static const struct drm_plane_funcs malidp_de_plane_funcs = {
        .update_plane = drm_atomic_helper_update_plane,
        .disable_plane = drm_atomic_helper_disable_plane,
+       .set_property = drm_atomic_helper_plane_set_property,
        .destroy = malidp_de_plane_destroy,
        .reset = drm_atomic_helper_plane_reset,
        .atomic_duplicate_state = malidp_duplicate_plane_state,