From c1cde953b6ebd3e22fbd578f22c5a2705b98213e Mon Sep 17 00:00:00 2001 From: Anjelique Melendez Date: Thu, 10 Nov 2022 12:30:23 -0800 Subject: [PATCH] input: qcom-hv-haptics: Update haptics_parse_per_effect_dt() Update haptics_parse_per_effect_dt() to remove reading "qcom,effect-id" property. Change-Id: I18f362e8a02dbca6038b80e503050fe8574e3a5f Fixes: f6c37c09587a ("input: qcom-hv-haptics: add support for primitive effect") Signed-off-by: Anjelique Melendez --- drivers/input/misc/qcom-hv-haptics.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/input/misc/qcom-hv-haptics.c b/drivers/input/misc/qcom-hv-haptics.c index 088d2bb89bc2..ede66c9d0915 100644 --- a/drivers/input/misc/qcom-hv-haptics.c +++ b/drivers/input/misc/qcom-hv-haptics.c @@ -4148,13 +4148,6 @@ static int haptics_parse_per_effect_dt(struct haptics_chip *chip, if (!effect) return -EINVAL; - rc = of_property_read_u32(node, "qcom,effect-id", &effect->id); - if (rc < 0) { - dev_err(chip->dev, "read qcom,effect-id failed, rc=%d\n", - rc); - return rc; - } - effect->vmax_mv = config->vmax_mv; rc = of_property_read_u32(node, "qcom,wf-vmax-mv", &tmp); if (rc < 0)