Input: imx6ul_tsc - convert int to u32
authorGuy Shapiro <guy.shapiro@mobi-wize.com>
Wed, 30 Nov 2016 18:25:11 +0000 (10:25 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 1 Dec 2016 01:44:36 +0000 (17:44 -0800)
commitaccbcea3465b2038fa8aa66cfa8f40db7ab1c83c
tree2f97f94d26e2db4532917fddfd0e033d40a495b8
parent70f5a294ad2eec3f896dafb83075cb8f04d65e92
Input: imx6ul_tsc - convert int to u32

The code uses of_property_read_u32 and expects positive values.  However,
the values are stored in signed int variables.  Additionally, the registers
values are also stored in signed variables without a good reason
(readl/writel expect u32).

The only time this caused a real bug was in the new average-samples
property, in which the property is numerically compared and implicitly
expected to be positive.

I believe it's better to change all the properties and registers to u32,
for consistency and warnings reduction.

Signed-off-by: Guy Shapiro <guy.shapiro@mobi-wize.com>
Reported-by: Bjørn Forsman <bjorn.forsman@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/imx6ul_tsc.c