]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/tegra: dc - Rename INVERT_V to V_DIRECTION
authorThierry Reding <treding@nvidia.com>
Tue, 25 Feb 2014 11:04:06 +0000 (12:04 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 23 Apr 2014 10:35:27 +0000 (12:35 +0200)
V_DIRECTION is the name of the field in the documentation, so use that
for consistency. Also add the H_DIRECTION field for completeness.

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

index 58d43f48a007dd71fa2ecc8bb65bd85c12a076ce..1a83d018c5344142a6a51fa78a1374da9305a295 100644 (file)
@@ -181,13 +181,13 @@ static int tegra_dc_set_base(struct tegra_dc *dc, int x, int y,
        /* make sure bottom-up buffers are properly displayed */
        if (tegra_fb_is_bottom_up(fb)) {
                value = tegra_dc_readl(dc, DC_WIN_WIN_OPTIONS);
-               value |= INVERT_V;
+               value |= V_DIRECTION;
                tegra_dc_writel(dc, value, DC_WIN_WIN_OPTIONS);
 
                v_offset += fb->height - 1;
        } else {
                value = tegra_dc_readl(dc, DC_WIN_WIN_OPTIONS);
-               value &= ~INVERT_V;
+               value &= ~V_DIRECTION;
                tegra_dc_writel(dc, value, DC_WIN_WIN_OPTIONS);
        }
 
@@ -578,7 +578,7 @@ int tegra_dc_setup_window(struct tegra_dc *dc, unsigned int index,
        }
 
        if (window->bottom_up)
-               value |= INVERT_V;
+               value |= V_DIRECTION;
 
        tegra_dc_writel(dc, value, DC_WIN_WIN_OPTIONS);
 
index c94101494826c898e83d43fb86c9df12064a65b0..44e31aefe8999f6826350b91fea2b0d365e93766 100644 (file)
 #define DC_WIN_CSC_KVB                         0x618
 
 #define DC_WIN_WIN_OPTIONS                     0x700
-#define INVERT_V     (1 <<  2)
+#define H_DIRECTION  (1 <<  0)
+#define V_DIRECTION  (1 <<  2)
 #define COLOR_EXPAND (1 <<  6)
 #define CSC_ENABLE   (1 << 18)
 #define WIN_ENABLE   (1 << 30)