From 332c0e3ea1bd27508b534e20e3341831318435ea Mon Sep 17 00:00:00 2001 From: jmpfbmx Date: Sat, 8 Aug 2020 00:09:58 +0200 Subject: [PATCH] MIX: LCM: Update, use set_backlight_cmdq because set_backlight isn't compatible with MT6757 kernels --- .../hct_rm67120_dsi_vdo_hd_gvo/hct_rm67120_dsi_vdo_hd_gvo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/mediatek/lcm/hct_rm67120_dsi_vdo_hd_gvo/hct_rm67120_dsi_vdo_hd_gvo.c b/drivers/misc/mediatek/lcm/hct_rm67120_dsi_vdo_hd_gvo/hct_rm67120_dsi_vdo_hd_gvo.c index 642329759..accf85901 100644 --- a/drivers/misc/mediatek/lcm/hct_rm67120_dsi_vdo_hd_gvo/hct_rm67120_dsi_vdo_hd_gvo.c +++ b/drivers/misc/mediatek/lcm/hct_rm67120_dsi_vdo_hd_gvo/hct_rm67120_dsi_vdo_hd_gvo.c @@ -403,7 +403,7 @@ static unsigned int lcm_compare_id(void) } -static void lcm_setbacklight(unsigned int level) +static void lcm_setbacklight_cmdq(void *handle, unsigned int level) { //unsigned int data_array[16]; unsigned int default_level = 50; @@ -441,6 +441,6 @@ LCM_DRIVER hct_rm67120_dsi_vdo_hd_gvo = .suspend = lcm_suspend, .resume = lcm_resume, .compare_id = lcm_compare_id, - .set_backlight = lcm_setbacklight, + .set_backlight_cmdq = lcm_setbacklight_cmdq, };