From: Andrzej Hajda Date: Thu, 18 Aug 2016 15:34:27 +0000 (+0200) Subject: drm/panel/s6e3ha2: use internal helper instead of mipi_dsi_dcs_write_buffer X-Git-Tag: accepted/tizen/common/20160829.140033~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F54%2F84554%2F3;p=platform%2Fkernel%2Flinux-exynos.git drm/panel/s6e3ha2: use internal helper instead of mipi_dsi_dcs_write_buffer Since driver have its own helper to write dcs commands there is no need to call mipi-dsi helpers. Change-Id: I9924bfd1ef18130fd36b6120cec0cd6c9dcfc277 Signed-off-by: Andrzej Hajda --- diff --git a/drivers/gpu/drm/panel/panel-s6e3ha2.c b/drivers/gpu/drm/panel/panel-s6e3ha2.c index 0ee77ae..7f9662a 100644 --- a/drivers/gpu/drm/panel/panel-s6e3ha2.c +++ b/drivers/gpu/drm/panel/panel-s6e3ha2.c @@ -480,30 +480,14 @@ static void s6e3ha2_gamma_update_l(struct s6e3ha2 *ctx) static void s6e3ha2_vr_enable(struct s6e3ha2 *ctx, int enable) { - struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev); - ssize_t ret; - const u8 *cmds; - u32 cmd_len; - - if (enable) { - cmds = MDNIE_6500K; - cmd_len = ARRAY_SIZE(MDNIE_6500K); - } else { - cmds = MDNIE_BYPASS; - cmd_len = ARRAY_SIZE(MDNIE_BYPASS); - } - /* TEST KEY ENABLE. */ s6e3ha2_test_key_on_f0(ctx); s6e3ha2_test_key_on_fc(ctx); - ret = mipi_dsi_dcs_write_buffer(dsi, cmds, cmd_len); - if (ret < 0) { - dev_err(ctx->dev, "error %zd writing dcs seq: %*ph\n", ret, - (int)cmd_len, cmds); - ctx->error = ret; - return; - } + if (enable) + s6e3ha2_dcs_write(ctx, MDNIE_6500K, ARRAY_SIZE(MDNIE_6500K)); + else + s6e3ha2_dcs_write(ctx, MDNIE_BYPASS, ARRAY_SIZE(MDNIE_BYPASS)); /* TEST KEY DISABLE. */ s6e3ha2_test_key_off_f0(ctx);