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: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
This commit is contained in:
Subbaraman Narayanamurthy 2018-12-04 20:01:44 -08:00
parent 0eef6c41e4
commit 65b125a481

View File

@ -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++];