.unpack_count = uc,                                               \
        .bpp = bp,                                                        \
        .fetch_mode = fm,                                                 \
-       .flag = {(flg)},                                                  \
+       .flags = flg,                                                     \
        .num_planes = np,                                                 \
        .tile_height = DPU_TILE_HEIGHT_DEFAULT                            \
 }
        .unpack_count = uc,                                               \
        .bpp = bp,                                                        \
        .fetch_mode = fm,                                                 \
-       .flag = {(flg)},                                                  \
+       .flags = flg,                                                     \
        .num_planes = np,                                                 \
        .tile_height = th                                                 \
 }
        .unpack_count = count,                                            \
        .bpp = bp,                                                        \
        .fetch_mode = fm,                                                 \
-       .flag = {(flg)},                                                  \
+       .flags = flg,                                                     \
        .num_planes = np,                                                 \
        .tile_height = DPU_TILE_HEIGHT_DEFAULT                            \
 }
        .unpack_count = 2,                                                \
        .bpp = 2,                                                         \
        .fetch_mode = fm,                                                 \
-       .flag = {(flg)},                                                  \
+       .flags = flg,                                                     \
        .num_planes = np,                                                 \
        .tile_height = DPU_TILE_HEIGHT_DEFAULT                            \
 }
        .unpack_count = 2,                                                \
        .bpp = 2,                                                         \
        .fetch_mode = fm,                                                 \
-       .flag = {(flg)},                                                  \
+       .flags = flg,                                                     \
        .num_planes = np,                                                 \
        .tile_height = th                                                 \
 }
        .unpack_count = 2,                                                \
        .bpp = 2,                                                         \
        .fetch_mode = fm,                                                 \
-       .flag = {(flg)},                                                  \
+       .flags = flg,                                                     \
        .num_planes = np,                                                 \
        .tile_height = DPU_TILE_HEIGHT_DEFAULT                            \
 }
        .unpack_count = 2,                                                \
        .bpp = 2,                                                         \
        .fetch_mode = fm,                                                 \
-       .flag = {(flg)},                                                  \
+       .flags = flg,                                                     \
        .num_planes = np,                                                 \
        .tile_height = th                                                 \
 }
        .unpack_count = 1,                                                \
        .bpp = bp,                                                        \
        .fetch_mode = fm,                                                 \
-       .flag = {(flg)},                                                  \
+       .flags = flg,                                                     \
        .num_planes = np,                                                 \
        .tile_height = DPU_TILE_HEIGHT_DEFAULT                            \
 }
                DPU_ERROR("unsupported fmt: %4.4s modifier 0x%llX\n",
                        (char *)&format, modifier);
        else
-               DRM_DEBUG_ATOMIC("fmt %4.4s mod 0x%llX ubwc %d yuv %d\n",
+               DRM_DEBUG_ATOMIC("fmt %4.4s mod 0x%llX ubwc %d yuv %ld\n",
                                (char *)&format, modifier,
                                DPU_FORMAT_IS_UBWC(fmt),
                                DPU_FORMAT_IS_YUV(fmt));
 
        DPU_FORMAT_FLAG_YUV_BIT,
        DPU_FORMAT_FLAG_DX_BIT,
        DPU_FORMAT_FLAG_COMPRESSED_BIT,
-       DPU_FORMAT_FLAG_BIT_MAX,
 };
 
 #define DPU_FORMAT_FLAG_YUV            BIT(DPU_FORMAT_FLAG_YUV_BIT)
 #define DPU_FORMAT_FLAG_DX             BIT(DPU_FORMAT_FLAG_DX_BIT)
 #define DPU_FORMAT_FLAG_COMPRESSED     BIT(DPU_FORMAT_FLAG_COMPRESSED_BIT)
-#define DPU_FORMAT_IS_YUV(X)           \
-       (test_bit(DPU_FORMAT_FLAG_YUV_BIT, (X)->flag))
-#define DPU_FORMAT_IS_DX(X)            \
-       (test_bit(DPU_FORMAT_FLAG_DX_BIT, (X)->flag))
+
+#define DPU_FORMAT_IS_YUV(X)           ((X)->flags & DPU_FORMAT_FLAG_YUV)
+#define DPU_FORMAT_IS_DX(X)            ((X)->flags & DPU_FORMAT_FLAG_DX)
 #define DPU_FORMAT_IS_LINEAR(X)                ((X)->fetch_mode == MDP_FETCH_LINEAR)
 #define DPU_FORMAT_IS_TILE(X) \
        (((X)->fetch_mode == MDP_FETCH_UBWC) && \
-                       !test_bit(DPU_FORMAT_FLAG_COMPRESSED_BIT, (X)->flag))
+        !((X)->flags & DPU_FORMAT_FLAG_COMPRESSED))
 #define DPU_FORMAT_IS_UBWC(X) \
        (((X)->fetch_mode == MDP_FETCH_UBWC) && \
-                       test_bit(DPU_FORMAT_FLAG_COMPRESSED_BIT, (X)->flag))
+        ((X)->flags & DPU_FORMAT_FLAG_COMPRESSED))
 
 #define DPU_BLEND_FG_ALPHA_FG_CONST    (0 << 0)
 #define DPU_BLEND_FG_ALPHA_BG_CONST    (1 << 0)
  * @alpha_enable: whether the format has an alpha channel
  * @num_planes: number of planes (including meta data planes)
  * @fetch_mode: linear, tiled, or ubwc hw fetch behavior
- * @flag: usage bit flags
+ * @flags: usage bit flags
  * @tile_width: format tile width
  * @tile_height: format tile height
  */
        u8 alpha_enable;
        u8 num_planes;
        enum mdp_fetch_mode fetch_mode;
-       DECLARE_BITMAP(flag, DPU_FORMAT_FLAG_BIT_MAX);
+       unsigned long flags;
        u16 tile_width;
        u16 tile_height;
 };