linux/arch/mips/alchemy
Linus Walleij 7b42c00a95 MIPS: Alchemy: 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.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-mips@linux-mips.org
Cc: linux-gpio@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/11921/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2016-01-24 02:20:45 +01:00
..
common MIPS: Alchemy: Be sure to clamp return value 2016-01-24 02:20:45 +01:00
devboards genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
board-gpr.c MIPS: Remove all the uses of custom gpio.h 2015-09-03 12:08:02 +02:00
board-mtx1.c MIPS: Remove all the uses of custom gpio.h 2015-09-03 12:08:02 +02:00
board-xxs1500.c MIPS: Alchemy: introduce helpers to access SYS register block. 2014-07-30 13:53:28 +02:00
Kconfig MIPS: Remove all the uses of custom gpio.h 2015-09-03 12:08:02 +02:00
Makefile MIPS: Alchemy: merge GPR/MTX-1/XXS1500 board code into single files 2011-12-07 22:02:06 +00:00
Platform MIPS: Alchemy: Unify Devboard support. 2014-03-26 23:09:21 +01:00