mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 19:47:08 +02:00
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: f6c37c0958 ("input: qcom-hv-haptics: add support for primitive effect")
Signed-off-by: Anjelique Melendez <quic_amelende@quicinc.com>
This commit is contained in:
parent
87e3484a2c
commit
c1cde953b6
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user