Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65b125a4 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

input: qti-haptics: Fix the variable type for getting element size



While parsing per effect properties, element size is obtained
as u32 data type which converts the negative value like -EINVAL
to a large value and fails parsing the property. Fix it by using
"int" data type.

Change-Id: Ifd64495e4cd810f12be61268f2eb9c6174ceede7
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 0eef6c41
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1182,8 +1182,7 @@ static int qti_haptics_parse_dt_per_effect(struct qti_hap_chip *chip)
	struct device_node *child_node;
	struct qti_hap_config *config = &chip->config;
	struct qti_hap_effect *effect;
	int rc, i = 0, j, m;
	u32 tmp;
	int rc, i = 0, j, m, tmp;

	for_each_available_child_of_node(node, child_node) {
		effect = &chip->predefined[i++];