Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26825153 authored by zhangxianzhu's avatar zhangxianzhu Committed by Daniel Jacob Chittoor
Browse files

[1 of 1][10277827]modify charging driver

 ###%%%comment:[1 of 1]modify charging driver
 ###%%%bug number:10277827
 ###%%%product name:n10
 ###%%%root cause:Coding
 ###%%%Bug category:T2M
 ###%%%regression response:NO
 ###%%%regression comments:
 ###%%%Module_Impact:kernel
 ###%%%Test_Suggestion:device can be charged
 ###%%%Solution:porting tct common charge driver
 ###%%%Test_Report:ok
 ###%%%VAL Can Test:No

Change-Id: I0952493af4e6b6991c3c951cedb105d161d6a31c
parent e15d5af6
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -34,6 +34,12 @@
#define DEFAULT_PANEL_PREFILL_LINES	25
#define MIN_PREFILL_LINES      35


#if defined(CONFIG_TCT_PM7250_COMMON)
bool g_lcd_on = true;
#endif


enum dsi_dsc_ratio_type {
	DSC_8BPC_8BPP,
	DSC_10BPC_8BPP,
@@ -4474,6 +4480,12 @@ int dsi_panel_enable(struct dsi_panel *panel)
		       panel->name, rc);
	else
		panel->panel_initialized = true;

#if defined(CONFIG_TCT_PM7250_COMMON)
		g_lcd_on = panel->panel_initialized;
#endif


	mutex_unlock(&panel->panel_lock);
	return rc;
}
@@ -4560,6 +4572,9 @@ int dsi_panel_disable(struct dsi_panel *panel)
	}
	panel->panel_initialized = false;
	panel->power_mode = SDE_MODE_DPMS_OFF;
#if defined(CONFIG_TCT_PM7250_COMMON)
		g_lcd_on = false;
#endif

	mutex_unlock(&panel->panel_lock);
	return rc;