aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Jirman <[email protected]>2020-02-23 00:51:52 +0100
committerJoel Stanley <[email protected]>2020-10-09 18:16:34 +1030
commitc76eb35587f556f48dc380ce7964e3254cba916d (patch)
tree1a0f2da78412bce3846450b05f607384f4690228
parent696029eb36c08d7b60097cae44a6269bfa68b51c (diff)
drm: aspeed: Fix GENMASK misuse
Arguments to GENMASK should be msb >= lsb. Signed-off-by: Ondrej Jirman <[email protected]> Reviewed-by: Andrew Jeffery <[email protected]> Signed-off-by: Joel Stanley <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r--drivers/gpu/drm/aspeed/aspeed_gfx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/aspeed/aspeed_gfx.h b/drivers/gpu/drm/aspeed/aspeed_gfx.h
index e7ca95827ae8..f1e7e56abc02 100644
--- a/drivers/gpu/drm/aspeed/aspeed_gfx.h
+++ b/drivers/gpu/drm/aspeed/aspeed_gfx.h
@@ -75,7 +75,7 @@ int aspeed_gfx_create_output(struct drm_device *drm);
/* CTRL2 */
#define CRT_CTRL_DAC_EN BIT(0)
#define CRT_CTRL_VBLANK_LINE(x) (((x) << 20) & CRT_CTRL_VBLANK_LINE_MASK)
-#define CRT_CTRL_VBLANK_LINE_MASK GENMASK(20, 31)
+#define CRT_CTRL_VBLANK_LINE_MASK GENMASK(31, 20)
/* CRT_HORIZ0 */
#define CRT_H_TOTAL(x) (x)