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
parent
d8a0a5bcc7
commit
df63dadb23
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue