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

Commit 20a19395 authored by Fenglin Wu's avatar Fenglin Wu
Browse files

input: qcom-hv-haptics: switch API to trigger PBS for ISC configuration



SW trigger for PBS to configure ISC in LRA detection doesn't need to
pass any parameter or wait on any condition including checking status.
Hence switch using qpnp_pbs_trigger_single_event() instead of
qpnp_pbs_trigger_event() to trigger PBS.

Change-Id: I8b252e293265994976924435f8a6a11d9b463119
Signed-off-by: default avatarFenglin Wu <fenglinw@codeaurora.org>
parent 1d2e35e7
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3600,7 +3600,6 @@ static int haptics_init_swr_slave_regulator(struct haptics_chip *chip)
	return rc;
}

#define PBS_SW_TRG_LRA_ISC_CFG_BIT	BIT(7)
static int haptics_pbs_trigger_isc_config(struct haptics_chip *chip)
{
	int rc;
@@ -3610,7 +3609,7 @@ static int haptics_pbs_trigger_isc_config(struct haptics_chip *chip)
		return -ENODEV;
	}

	rc = qpnp_pbs_trigger_event(chip->pbs_node, PBS_SW_TRG_LRA_ISC_CFG_BIT);
	rc = qpnp_pbs_trigger_single_event(chip->pbs_node);
	if (rc < 0)
		dev_err(chip->dev, "Trigger PBS to config ISC failed, rc=%d\n",
				rc);