aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGuy Shapiro <[email protected]>2016-11-30 10:25:11 -0800
committerDmitry Torokhov <[email protected]>2016-11-30 17:44:36 -0800
commitaccbcea3465b2038fa8aa66cfa8f40db7ab1c83c (patch)
tree2f97f94d26e2db4532917fddfd0e033d40a495b8 /tools/perf/scripts/python
parent70f5a294ad2eec3f896dafb83075cb8f04d65e92 (diff)
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 <[email protected]> Reported-by: Bjørn Forsman <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions