mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 15:42:19 +02:00
tegra: video: make tegra_dc_is_yuv_planar return bool
Change-Id: I8adaea9eeb20f1c90b33d41a5b462ab8ee515b49 Signed-off-by: Erik Gilling <konkers@android.com>
This commit is contained in:
parent
9a3e1502d5
commit
a60ea58ebe
|
|
@ -94,16 +94,16 @@ static inline int tegra_dc_fmt_bpp(int fmt)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static inline int tegra_dc_is_yuv_planar(int fmt)
|
||||
static inline bool tegra_dc_is_yuv_planar(int fmt)
|
||||
{
|
||||
switch (fmt) {
|
||||
case TEGRA_WIN_FMT_YUV420P:
|
||||
case TEGRA_WIN_FMT_YCbCr420P:
|
||||
case TEGRA_WIN_FMT_YCbCr422P:
|
||||
case TEGRA_WIN_FMT_YUV422P:
|
||||
return 1;
|
||||
return true;
|
||||
}
|
||||
return 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
#define DUMP_REG(a) do { \
|
||||
|
|
@ -496,7 +496,7 @@ int tegra_dc_update_windows(struct tegra_dc_win *windows[], int n)
|
|||
struct tegra_dc_win *win = windows[i];
|
||||
unsigned h_dda;
|
||||
unsigned v_dda;
|
||||
int yuvp = tegra_dc_is_yuv_planar(win->fmt);
|
||||
bool yuvp = tegra_dc_is_yuv_planar(win->fmt);
|
||||
|
||||
if (win->z != dc->blend.z[win->idx]) {
|
||||
dc->blend.z[win->idx] = win->z;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user