mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
drm/panel: s6d7aa0: remove the unneeded variable in s6d7aa0_lock
Remove unneeded variable and directly return 0. Signed-off-by: Wang Jianzheng <wangjianzheng@vivo.com> Acked-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> Reviewed-by: Artur Weber <aweber.kernel@gmail.com> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20230608033446.18412-1-wangjianzheng@vivo.com
This commit is contained in:
committed by
Neil Armstrong
parent
95d440188d
commit
c5dacfe2e6
@@ -66,7 +66,6 @@ static void s6d7aa0_reset(struct s6d7aa0 *ctx)
|
||||
static int s6d7aa0_lock(struct s6d7aa0 *ctx, bool lock)
|
||||
{
|
||||
struct mipi_dsi_device *dsi = ctx->dsi;
|
||||
int ret = 0;
|
||||
|
||||
if (lock) {
|
||||
mipi_dsi_dcs_write_seq(dsi, MCS_PASSWD1, 0xa5, 0xa5);
|
||||
@@ -80,7 +79,7 @@ static int s6d7aa0_lock(struct s6d7aa0 *ctx, bool lock)
|
||||
mipi_dsi_dcs_write_seq(dsi, MCS_PASSWD3, 0xa5, 0xa5);
|
||||
}
|
||||
|
||||
return ret;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int s6d7aa0_on(struct s6d7aa0 *ctx)
|
||||
|
||||
Reference in New Issue
Block a user