Commit 4a5827fb authored by Gustavo Padovan's avatar Gustavo Padovan Committed by Inki Dae

drm/exynos: Save up space using bool var as bitfields

Save a few bytes by compiling them all in the same byte.
Signed-off-by: default avatarGustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 5d0e6fec
...@@ -66,10 +66,10 @@ enum exynos_drm_output_type { ...@@ -66,10 +66,10 @@ enum exynos_drm_output_type {
* @dma_addr: array of bus(accessed by dma) address to the memory region * @dma_addr: array of bus(accessed by dma) address to the memory region
* allocated for a overlay. * allocated for a overlay.
* @zpos: order of overlay layer(z position). * @zpos: order of overlay layer(z position).
* @default_win: a window to be enabled.
* @color_key: color key on or off.
* @index_color: if using color key feature then this value would be used * @index_color: if using color key feature then this value would be used
* as index color. * as index color.
* @default_win: a window to be enabled.
* @color_key: color key on or off.
* @local_path: in case of lcd type, local path mode on or off. * @local_path: in case of lcd type, local path mode on or off.
* @transparency: transparency on or off. * @transparency: transparency on or off.
* @activated: activated or not. * @activated: activated or not.
...@@ -97,13 +97,13 @@ struct exynos_drm_overlay { ...@@ -97,13 +97,13 @@ struct exynos_drm_overlay {
uint32_t pixel_format; uint32_t pixel_format;
dma_addr_t dma_addr[MAX_FB_BUFFER]; dma_addr_t dma_addr[MAX_FB_BUFFER];
int zpos; int zpos;
bool default_win;
bool color_key;
unsigned int index_color; unsigned int index_color;
bool local_path;
bool transparency; bool default_win:1;
bool activated; bool color_key:1;
bool local_path:1;
bool transparency:1;
bool activated:1;
}; };
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment