WSL2-Linux-Kernel/arch/mips/ar7
Linus Walleij 249e573d99 MIPS: ar7: 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>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Cc: Alban Bedel <albeu@free.fr>
Cc: linux-mips@linux-mips.org
Cc: linux-gpio@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/11922/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2016-01-24 02:21:47 +01:00
..
Makefile MIPS: Introduce support for Platform definitions 2010-08-05 13:25:45 +01:00
Platform MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00
clock.c MIPS: AR7: Fix trailing semicolon bug in clock.c 2011-07-20 23:12:12 +01:00
gpio.c MIPS: ar7: Be sure to clamp return value 2016-01-24 02:21:47 +01:00
irq.c MIPS: Mark cascade and low level interrupts IRQF_NO_THREAD 2011-09-21 17:52:15 +02:00
memory.c MIPS: FW: Remove obsolete header file for MTI platforms. 2013-05-08 12:30:10 +02:00
platform.c Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus 2015-09-03 16:55:55 -07:00
prom.c MIPS: AR7: constify some arrays in gpio and prom code 2011-12-07 22:02:34 +00:00
setup.c MIPS: Remove all the uses of custom gpio.h 2015-09-03 12:08:02 +02:00
time.c MIPS: Restore init.h usage to arch/mips/ar7/time.c 2014-03-26 23:09:23 +01:00