diff options
author | Linus Walleij <[email protected]> | 2015-12-21 16:50:18 +0100 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2016-01-25 18:02:09 +0100 |
commit | 48295fe932b3306c25ba6157db82f8f9938f2637 (patch) | |
tree | a7a24b4c9fc490e0015f45a6a5b4a3fa1fdf1d92 /arch/powerpc/sysdev/simple_gpio.c | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d (diff) |
blackfin: 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.
Cc: Steven Miao <[email protected]>
Cc: [email protected]
Acked-by: Sonic Zhang <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'arch/powerpc/sysdev/simple_gpio.c')
0 files changed, 0 insertions, 0 deletions