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

Commit a5b60966 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "input: qti-haptics: Disable AUTO_RES for ERM"

parents d59603a2 efea8f5b
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1103,8 +1103,11 @@ static int qti_haptics_hw_init(struct qti_hap_chip *chip)
	 * Skip configurations below for ERM actuator
	 * as they're only for LRA actuators
	 */
	if (config->act_type == ACT_ERM)
		return 0;
	if (config->act_type == ACT_ERM) {
		/* Disable AUTO_RES for ERM */
		rc = qti_haptics_lra_auto_res_enable(chip, false);
		return rc;
	}

	addr = REG_HAP_CFG2;
	val = config->lra_shape;