aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLinus Walleij <[email protected]>2015-12-21 16:33:41 +0100
committerLinus Walleij <[email protected]>2015-12-26 22:28:38 +0100
commit464231fb1fb1360399a2eb11479c47e39facb030 (patch)
tree7d3677b232773c02019af3b9de7d90df8cc3abca /tools/perf/scripts/python
parent59663a4cc5270f618e2b99d719b492bb1020deb8 (diff)
pinctrl: ssbi-gpio: Be sure to clamp return value
As we want gpio_chip .get() calls to be able to return negative error codes and propagate to drivers, we need to go over all drivers and make sure their return values are clamped to [0,1]. We do this by using the ret = !!(val) design pattern. Also, this code was double-inverting a bool. That makes no sense whatsoever, so I removed the double-invert. Cc: Björn Andersson <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions