drm/panel: simplify the return expression of td028ttec1_prepare
Simplify the return expression. Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20200921131018.91513-1-miaoqinglang@huawei.com
This commit is contained in:
committed by
Sam Ravnborg
parent
e8c93e0c6a
commit
b809979f11
@@ -242,13 +242,8 @@ static int td028ttec1_prepare(struct drm_panel *panel)
|
|||||||
static int td028ttec1_enable(struct drm_panel *panel)
|
static int td028ttec1_enable(struct drm_panel *panel)
|
||||||
{
|
{
|
||||||
struct td028ttec1_panel *lcd = to_td028ttec1_device(panel);
|
struct td028ttec1_panel *lcd = to_td028ttec1_device(panel);
|
||||||
int ret;
|
|
||||||
|
|
||||||
ret = jbt_ret_write_0(lcd, JBT_REG_DISPLAY_ON, NULL);
|
return jbt_ret_write_0(lcd, JBT_REG_DISPLAY_ON, NULL);
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int td028ttec1_disable(struct drm_panel *panel)
|
static int td028ttec1_disable(struct drm_panel *panel)
|
||||||
|
|||||||
Reference in New Issue
Block a user