From 19152cdd28b46f2a6f77e70298a255545516ca69 Mon Sep 17 00:00:00 2001 From: Fenglin Wu Date: Wed, 28 Oct 2020 15:45:56 +0800 Subject: [PATCH] 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 --- drivers/input/misc/qcom-hv-haptics.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/input/misc/qcom-hv-haptics.c b/drivers/input/misc/qcom-hv-haptics.c index d2c5aaff2582..4dcaec169f07 100644 --- a/drivers/input/misc/qcom-hv-haptics.c +++ b/drivers/input/misc/qcom-hv-haptics.c @@ -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);