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: Fenglin Wu <fenglinw@codeaurora.org>
This commit is contained in:
Fenglin Wu 2020-10-28 15:45:56 +08:00 committed by David Collins
parent be0172dabf
commit 19152cdd28

View File

@ -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);