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

Commit 8b810957 authored by yushixian's avatar yushixian Committed by Rohit Sekhar
Browse files

ts: hxchipset: LCD gamma value is too large

[FP4-2196] [FP4]:LCD gamma value is too large
 &&&%%%comment:[FP4]:LCD gamma value is too large
 &&&%%%bug number:FP4-2196
 &&&%%%product name:sm7225_r_fp4
 &&&%%%root cause:coding
 &&&%%%Bug category:T2M
 &&&%%%Module_Impact:kernel
 &&&%%%Test_Suggestion:no
 &&&%%%Solution:revert qualcomm's modification at lcdb regulator
 &&&%%%Test_Report:test is ok
 &&&%%%VAL Can Test:NO

Change-Id: If6e488edfa4b8d11c7e0145255f72761ad15812f
parent c9c1cfdd
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -1509,7 +1509,7 @@ static struct regulator_ops qpnp_lcdb_ncp_ops = {

static int qpnp_lcdb_regulator_register(struct qpnp_lcdb *lcdb, u8 type)
{
	int rc = 0, off_on_delay = 0, voltage_step = VOLTAGE_STEP_50_MV;
	int rc = 0, off_on_delay = 0;
	struct regulator_init_data *init_data;
	struct regulator_config cfg = {};
	struct regulator_desc *rdesc;
@@ -1524,16 +1524,12 @@ static int qpnp_lcdb_regulator_register(struct qpnp_lcdb *lcdb, u8 type)
		rdesc			= &lcdb->ldo.rdesc;
		rdesc->ops		= &qpnp_lcdb_ldo_ops;
		rdesc->off_on_delay	= off_on_delay;
		rdesc->n_voltages = ((MAX_VOLTAGE_MV - MIN_VOLTAGE_MV)
					/ voltage_step) + 1;
		rdev			= lcdb->ldo.rdev;
	} else if (type == NCP) {
		node			= lcdb->ncp.node;
		rdesc			= &lcdb->ncp.rdesc;
		rdesc->ops		= &qpnp_lcdb_ncp_ops;
		rdesc->off_on_delay	= off_on_delay;
		rdesc->n_voltages = ((MAX_VOLTAGE_MV - MIN_VOLTAGE_MV)
					/ voltage_step) + 1;
		rdev			= lcdb->ncp.rdev;
	} else {
		pr_err("Invalid regulator type %d\n", type);