From: Andrzej Hajda Date: Mon, 12 Sep 2016 09:04:19 +0000 (+0200) Subject: drm/panel/s6e3ha2: merge interface setting commands X-Git-Tag: submit/tizen/20160926.022655~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d8fa49a8604976bb1be2331bc00d261fd5868fb;p=platform%2Fkernel%2Flinux-exynos.git drm/panel/s6e3ha2: merge interface setting commands The patch merges interface setting commands into one function. Change-Id: Iedb8592413a9f2b1cf47ed1be9576e5afd694336 Signed-off-by: Andrzej Hajda --- diff --git a/drivers/gpu/drm/panel/panel-s6e3ha2.c b/drivers/gpu/drm/panel/panel-s6e3ha2.c index 0a804b5b1290..2bf064a43c57 100644 --- a/drivers/gpu/drm/panel/panel-s6e3ha2.c +++ b/drivers/gpu/drm/panel/panel-s6e3ha2.c @@ -733,13 +733,9 @@ static void s6e3ha2_test_key_off_fc(struct s6e3ha2 *ctx) s6e3ha2_dcs_write_seq_static(ctx, LDI_PASSWD3, 0xa5, 0xa5); } -static void s6e3ha2_single_dsi_set1(struct s6e3ha2 *ctx) +static void s6e3ha2_set_interface(struct s6e3ha2 *ctx) { s6e3ha2_dcs_write_seq_static(ctx, LDI_DISPCTL, 0x67); -} - -static void s6e3ha2_single_dsi_set2(struct s6e3ha2 *ctx) -{ s6e3ha2_dcs_write_seq_static(ctx, LDI_MICCTL, 0x09); } @@ -1056,9 +1052,7 @@ static void s6e3ha2_panel_init(struct s6e3ha2 *ctx) usleep_range(5000, 6000); s6e3ha2_test_key_on_f0(ctx); - s6e3ha2_single_dsi_set1(ctx); - s6e3ha2_single_dsi_set2(ctx); - + s6e3ha2_set_interface(ctx); s6e3ha2_test_key_on_fc(ctx); s6e3ha2_freq_calibration(ctx); s6e3ha2_test_key_off_fc(ctx);