1
0
Fork 0

MLK-19413-15 gpu: imx: dpu: extdst: Add extdst_is_master() helper support

This patch adds extdst_is_master() helper support so that
callers may know if a extdst is a master extdst or not.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
pull/10/head
Liu Ying 2018-08-17 11:00:59 +08:00 committed by Jason Liu
parent d8a0a5bcc7
commit df63dadb23
2 changed files with 7 additions and 0 deletions

View File

@ -401,6 +401,12 @@ u32 extdst_perfresult(struct dpu_extdst *ed)
}
EXPORT_SYMBOL_GPL(extdst_perfresult);
bool extdst_is_master(struct dpu_extdst *ed)
{
return ed->id == 0;
}
EXPORT_SYMBOL_GPL(extdst_is_master);
struct dpu_extdst *dpu_ed_get(struct dpu_soc *dpu, int id)
{
struct dpu_extdst *ed;

View File

@ -546,6 +546,7 @@ u32 extdst_last_control_word(struct dpu_extdst *ed);
void extdst_pixel_cnt(struct dpu_extdst *ed, u16 *x, u16 *y);
void extdst_last_pixel_cnt(struct dpu_extdst *ed, u16 *x, u16 *y);
u32 extdst_perfresult(struct dpu_extdst *ed);
bool extdst_is_master(struct dpu_extdst *ed);
struct dpu_extdst *dpu_ed_get(struct dpu_soc *dpu, int id);
void dpu_ed_put(struct dpu_extdst *ed);
struct dpu_extdst *dpu_aux_ed_peek(struct dpu_extdst *ed);