drm/mediatek: Remove unnecessary conversion to bool
In function mtk_dsi_clk_hs_state, remove unnecessary conversion to bool return, this change is to make the code a bit readable. Signed-off-by: Bernard Zhao <bernard@vivo.com> Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
This commit is contained in:
parent
c0b8892e24
commit
e905292794
|
@ -316,10 +316,7 @@ static void mtk_dsi_lane0_ulp_mode_leave(struct mtk_dsi *dsi)
|
|||
|
||||
static bool mtk_dsi_clk_hs_state(struct mtk_dsi *dsi)
|
||||
{
|
||||
u32 tmp_reg1;
|
||||
|
||||
tmp_reg1 = readl(dsi->regs + DSI_PHY_LCCON);
|
||||
return ((tmp_reg1 & LC_HS_TX_EN) == 1) ? true : false;
|
||||
return readl(dsi->regs + DSI_PHY_LCCON) & LC_HS_TX_EN;
|
||||
}
|
||||
|
||||
static void mtk_dsi_clk_hs_mode(struct mtk_dsi *dsi, bool enter)
|
||||
|
|
Loading…
Reference in New Issue