From: Andrzej Hajda Date: Mon, 12 Sep 2016 10:21:57 +0000 (+0200) Subject: drm/panel/s6e3ha2: merge brightness setting for normal and HMT mode X-Git-Tag: accepted/tizen/3.0/ivi/20161011.050606~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=88d1f12c3ead3e953ac9a0325188bdc7fea9a955;p=platform%2Fkernel%2Flinux-exynos.git drm/panel/s6e3ha2: merge brightness setting for normal and HMT mode Both functions do the same thing, the only difference is the order of operations, which is incorrect in case of normal mode. Change-Id: I2f6850d3b6ae9c0afeafda74756ee2a78166da36 Signed-off-by: Andrzej Hajda --- diff --git a/drivers/gpu/drm/panel/panel-s6e3ha2.c b/drivers/gpu/drm/panel/panel-s6e3ha2.c index 29d9471..5aed946 100644 --- a/drivers/gpu/drm/panel/panel-s6e3ha2.c +++ b/drivers/gpu/drm/panel/panel-s6e3ha2.c @@ -966,35 +966,15 @@ static void s6e3ha2_update_gamma(struct s6e3ha2 *ctx) s6e3ha2_dcs_write(ctx, data, ARRAY_SIZE(data)); } -static void s6e3ha2_set_hmt_brightness(struct s6e3ha2 *ctx) -{ - s6e3ha2_test_key_on_f0(ctx); - s6e3ha2_test_key_on_fc(ctx); - - s6e3ha2_update_gamma(ctx); - s6e3ha2_aid_control(ctx); - s6e3ha2_set_elvss(ctx); - s6e3ha2_set_vint(ctx); - s6e3ha2_panel_update(ctx); - - s6e3ha2_test_key_off_fc(ctx); - s6e3ha2_test_key_off_f0(ctx); - /* TODO */ -} - static void s6e3ha2_set_brightness(struct s6e3ha2 *ctx) { s6e3ha2_update_nit_index(ctx); - - if (ctx->hmt_mode) { - s6e3ha2_set_hmt_brightness(ctx); - return; - } s6e3ha2_test_key_on_f0(ctx); s6e3ha2_update_gamma(ctx); - s6e3ha2_panel_update(ctx); s6e3ha2_aid_control(ctx); + s6e3ha2_set_elvss(ctx); s6e3ha2_set_vint(ctx); + s6e3ha2_panel_update(ctx); s6e3ha2_test_key_off_f0(ctx); }