summaryrefslogtreecommitdiffstats
path: root/arch/mips/configs/ip28_defconfig
diff options
context:
space:
mode:
authorLinus Walleij2015-12-22 15:40:02 +0100
committerRalf Baechle2016-01-24 02:20:45 +0100
commit7b42c00a95c02d962b18f8ed8bf59b65ae58d3ee (patch)
tree463994d70c1d1672b349812484a172248a646099 /arch/mips/configs/ip28_defconfig
parentMIPS: math-emu: dsemul: Reduce `get_isa16_mode' clutter (diff)
downloadkernel-qcow2-linux-7b42c00a95c02d962b18f8ed8bf59b65ae58d3ee.tar.gz
kernel-qcow2-linux-7b42c00a95c02d962b18f8ed8bf59b65ae58d3ee.tar.xz
kernel-qcow2-linux-7b42c00a95c02d962b18f8ed8bf59b65ae58d3ee.zip
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>
Diffstat (limited to 'arch/mips/configs/ip28_defconfig')
0 files changed, 0 insertions, 0 deletions