diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2015-12-22 15:48:13 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2016-01-14 08:43:13 +0000 |
commit | bf3de47f1af3dab8fb8c3a3bd21ada7de614b7de (patch) | |
tree | 91bca3f986531669bcfab864ec59bbd5c0121c49 /Documentation/cachetlb.txt | |
parent | 0c7f3f92ffe8dc4e631b2f20c06543ec9f521f7c (diff) | |
download | blackbird-op-linux-bf3de47f1af3dab8fb8c3a3bd21ada7de614b7de.tar.gz blackbird-op-linux-bf3de47f1af3dab8fb8c3a3bd21ada7de614b7de.zip |
mfd: tps65010: 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.
This also start to propagate the negative error code from the
smbus call if there is one, as the last commit of this series
will make the gpiolib core deal with that properly.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'Documentation/cachetlb.txt')
0 files changed, 0 insertions, 0 deletions