Merge "input: qcom-hv-haptics: Update haptics_parse_per_effect_dt()"

This commit is contained in:
qctecmdr 2022-11-11 05:32:30 -08:00 committed by Gerrit - the friendly Code Review server
commit 987b611bea

View File

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