drm/tegra: plane: Rename bottom_up to reflect_y
authorDmitry Osipenko <digetx@gmail.com>
Wed, 17 Jun 2020 23:40:38 +0000 (02:40 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 17 Jul 2020 14:06:16 +0000 (16:06 +0200)
This makes the naming consistent with the DRM core.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c
drivers/gpu/drm/tegra/dc.h
drivers/gpu/drm/tegra/plane.c
drivers/gpu/drm/tegra/plane.h

index dc835ae94f44878f6e0b2b575ef61aba5a57c0f7..27b1b82cdad75b13284e565e67c6e6c16dd6063a 100644 (file)
@@ -404,7 +404,7 @@ static void tegra_dc_setup_window(struct tegra_plane *plane,
                tegra_plane_writel(plane, window->stride[0], DC_WIN_LINE_STRIDE);
        }
 
-       if (window->bottom_up)
+       if (window->reflect_y)
                v_offset += window->src.h - 1;
 
        tegra_plane_writel(plane, h_offset, DC_WINBUF_ADDR_H_OFFSET);
@@ -470,7 +470,7 @@ static void tegra_dc_setup_window(struct tegra_plane *plane,
                value |= COLOR_EXPAND;
        }
 
-       if (window->bottom_up)
+       if (window->reflect_y)
                value |= V_DIRECTION;
 
        if (tegra_plane_use_horizontal_filtering(plane, window)) {
@@ -642,9 +642,9 @@ static int tegra_plane_atomic_check(struct drm_plane *plane,
        rotation = drm_rotation_simplify(state->rotation, rotation);
 
        if (rotation & DRM_MODE_REFLECT_Y)
-               plane_state->bottom_up = true;
+               plane_state->reflect_y = true;
        else
-               plane_state->bottom_up = false;
+               plane_state->reflect_y = false;
 
        /*
         * Tegra doesn't support different strides for U and V planes so we
@@ -706,7 +706,7 @@ static void tegra_plane_atomic_update(struct drm_plane *plane,
        window.dst.w = drm_rect_width(&plane->state->dst);
        window.dst.h = drm_rect_height(&plane->state->dst);
        window.bits_per_pixel = fb->format->cpp[0] * 8;
-       window.bottom_up = tegra_fb_is_bottom_up(fb) || state->bottom_up;
+       window.reflect_y = tegra_fb_is_bottom_up(fb) || state->reflect_y;
 
        /* copy from state */
        window.zpos = plane->state->normalized_zpos;
index 3d8ddccd758f8e5273b7330788d45b97e18dd16e..98e1b625168e08773a8feb20cde94b06a949029e 100644 (file)
@@ -136,7 +136,7 @@ struct tegra_dc_window {
        unsigned int stride[2];
        unsigned long base[3];
        unsigned int zpos;
-       bool bottom_up;
+       bool reflect_y;
 
        struct tegra_bo_tiling tiling;
        u32 format;
index 9ccfb56e9b01f4954e123c57f436df741f125030..e05ef6013a976988493c242ba6b567c8cc4b9701 100644 (file)
@@ -61,7 +61,7 @@ tegra_plane_atomic_duplicate_state(struct drm_plane *plane)
        copy->tiling = state->tiling;
        copy->format = state->format;
        copy->swap = state->swap;
-       copy->bottom_up = state->bottom_up;
+       copy->reflect_y = state->reflect_y;
        copy->opaque = state->opaque;
 
        for (i = 0; i < 2; i++)
index a158a915109ac6c27f20eca57cd15398822f5158..8047fc916d8c65eb47de5969c7df8f6eab351e34 100644 (file)
@@ -46,7 +46,7 @@ struct tegra_plane_state {
        u32 format;
        u32 swap;
 
-       bool bottom_up;
+       bool reflect_y;
 
        /* used for legacy blending support only */
        struct tegra_plane_legacy_blending_state blending[2];