diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-10-10 13:59:57 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-10-11 16:02:32 +0200 |
commit | 48b34ac041756c2fd3a898d6e96be97416858b45 (patch) | |
tree | 234e9116f59d22bca7478e00190023aee3dea6da /drivers/gpu/drm/omapdrm/omap_dmm_tiler.h | |
parent | drm/omap: cleanup OMAP_BO flags (diff) | |
download | linux-48b34ac041756c2fd3a898d6e96be97416858b45.tar.xz linux-48b34ac041756c2fd3a898d6e96be97416858b45.zip |
drm/omap: remove OMAP_BO_TILED define
OMAP_BO_TILED does not make sense, as OMAP_BO_TILED_* values are not
bitmasks but normal values. As we already have OMAP_BO_TILED_MASK for
the mask, we can remove OMAP_BO_TILED and use OMAP_BO_TILED_MASK
instead.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191010120000.1421-6-jjhiblot@ti.com
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_dmm_tiler.h')
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_dmm_tiler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.h b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.h index 835e6654fa82..43c1d096b021 100644 --- a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.h +++ b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.h @@ -113,7 +113,7 @@ extern struct platform_driver omap_dmm_driver; /* GEM bo flags -> tiler fmt */ static inline enum tiler_fmt gem2fmt(u32 flags) { - switch (flags & OMAP_BO_TILED) { + switch (flags & OMAP_BO_TILED_MASK) { case OMAP_BO_TILED_8: return TILFMT_8BIT; case OMAP_BO_TILED_16: |