Linus Walleij
4b63739efa
gpio: generic: fix signedness bug found by cppcheck
...
cppcheck reports this:
(style) int result is returned as long value. If the return
value is long to avoid loss of information, then you have
loss of information.
This can be fixed with (1UL << pin) but that is the same
as using <linux/bitops.h> that already use 1UL so take
this approach.
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2016-01-05 11:13:28 +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
2016-01-05 11:13:28 +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-27 23:51: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