Files
android_kernel_xiaomi_sm8450/drivers/gpio
Linus Walleij 6f14dd6964 gpio: ml-ioh: 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: Feng Tang <feng.tang@intel.com>
Cc: Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2015-12-26 22:28:15 +01:00
..
2015-12-21 09:36:21 +01:00
2015-11-30 16:41:26 +01:00
2015-12-21 09:36:21 +01:00
2015-11-19 09:24:35 +01:00
2015-11-30 16:41:26 +01:00
2015-12-21 09:36:21 +01:00
2015-12-21 09:36:21 +01:00
2015-12-15 14:41:44 +01:00
2015-11-30 16:41:26 +01:00
2015-11-19 09:24:35 +01:00
2015-12-21 09:36:21 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-12-21 09:36:21 +01:00