Linus Walleij
80776df4f5
gpio: viperboard: 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: Lars Poeschel <poeschel@lemonage.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2015-12-26 22:28:32 +01:00
..
2015-07-06 10:39:24 +02:00
2015-12-10 17:21:02 +01:00
2015-11-17 14:39:17 +01:00
2015-12-22 10:19:49 +01:00
2015-12-10 19:25:21 +01:00
2015-11-30 09:31:00 +01:00
2014-10-20 16:20:31 +02:00
2015-07-28 09:45:39 +02:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +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
2015-11-19 09:24:35 +01:00
2015-09-16 15:47:51 +02:00
2014-08-29 14:31:43 +02:00
2014-10-20 16:20:31 +02:00
2015-11-19 09:24:35 +01:00
2014-12-14 16:10:09 -08:00
2015-12-26 22:28:06 +01:00
2015-04-08 09:54:21 +02:00
2015-12-26 22:28:06 +01:00
2015-11-19 09:24:35 +01:00
2015-09-16 15:47:51 +02:00
2015-12-26 22:28:07 +01:00
2015-09-16 15:47:51 +02:00
2015-10-02 04:19:31 -07:00
2015-11-30 16:41:26 +01:00
2015-01-29 10:33:15 +01:00
2015-12-21 09:36:21 +01:00
2015-08-17 10:56:24 +02:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:09 +01:00
2014-10-20 16:20:31 +02:00
2015-10-02 04:19:35 -07:00
2015-12-26 22:28:10 +01:00
2015-12-26 22:28:12 +01:00
2014-10-02 16:07:00 +02:00
2015-04-08 09:53:42 +02:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:13 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:14 +01:00
2015-11-30 09:31:00 +01:00
2015-10-28 10:30:17 +09:00
2015-11-19 09:24:35 +01:00
2015-11-30 09:31:00 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:15 +01:00
2015-01-20 11:18:51 +01:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:16 +01:00
2015-12-10 19:28:05 +01:00
2015-12-26 22:28:18 +01:00
2015-11-19 09:24:35 +01:00
2015-10-15 00:21:12 +02:00
2015-09-18 08:11:42 -07: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-10 23:57:43 +01:00
2015-12-26 22:28:19 +01:00
2015-12-26 22:28:20 +01:00
2015-12-14 15:01:33 +01:00
2015-12-22 10:09:57 +01:00
2015-11-19 09:24:35 +01:00
2015-12-11 10:11:40 +01:00
2014-07-22 16:39:26 +02:00
2015-12-26 22:28:21 +01:00
2014-09-23 17:51:39 +02:00
2015-11-30 16:41:26 +01:00
2015-11-19 09:24:35 +01:00
2015-10-13 19:01:23 +02:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:23 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:24 +01:00
2015-12-21 09:36:21 +01:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:25 +01:00
2015-11-17 15:18:51 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:27 +01:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:29 +01:00
2015-12-26 22:28:28 +01:00
2015-12-26 22:28:30 +01:00
2015-11-19 09:24:35 +01:00
2015-12-26 22:28:32 +01:00
2015-11-19 09:24:35 +01:00
2015-01-15 17:23:18 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-06-02 14:52:00 +02:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2014-10-20 16:20:31 +02:00
2015-11-19 09:24:35 +01:00
2015-11-19 09:24:35 +01:00
2015-12-14 14:10:04 +01:00
2015-11-19 09:24:37 +01:00
2015-10-16 22:46:46 +02: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
2015-12-11 19:14:35 +01:00
2015-12-10 18:36:51 +01:00
2015-12-01 09:56:36 +01:00