touch: fix regulator min voltage during deinit
voltage range should fall in between regulator supported range. updated min voltage from zero to regulator min voltage. Change-Id: I3df1e2638d69348b0550d175063df2e3ac65cf0d Signed-off-by: Surya Teja Kudiri <quic_skudiri@quicinc.com>
Šī revīzija ir iekļauta:
@@ -10383,7 +10383,8 @@ static int pt_enable_regulator(struct pt_core_data *cd, bool en)
|
||||
disable_vcc_i2c_reg:
|
||||
if (cd->vcc_i2c) {
|
||||
if (regulator_count_voltages(cd->vcc_i2c) > 0)
|
||||
regulator_set_voltage(cd->vcc_i2c, 0, FT_I2C_VTG_MAX_UV);
|
||||
regulator_set_voltage(cd->vcc_i2c, FT_I2C_VTG_MIN_UV,
|
||||
FT_I2C_VTG_MAX_UV);
|
||||
|
||||
regulator_disable(cd->vcc_i2c);
|
||||
}
|
||||
@@ -10391,7 +10392,8 @@ disable_vcc_i2c_reg:
|
||||
disable_vdd_reg:
|
||||
if (cd->vdd) {
|
||||
if (regulator_count_voltages(cd->vdd) > 0)
|
||||
regulator_set_voltage(cd->vdd, 0, FT_VTG_MAX_UV);
|
||||
regulator_set_voltage(cd->vdd, FT_VTG_MIN_UV,
|
||||
FT_VTG_MAX_UV);
|
||||
|
||||
regulator_disable(cd->vdd);
|
||||
}
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user