This repository has been archived on 2026-03-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
ubports_kernel_google_msm/include/linux
Joe Perches 3474cb3cc0 gpio: Convert gpio_is_valid to return bool
Make the code a bit more readable.

Instead of casting an int to an unsigned then comparing to
MAX_NR_GPIOS, add a >= 0 test and let the compiler optimizer
do the conversion to unsigned.

The generated code should be the same.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2011-05-26 21:02:43 -06:00
..
2011-05-04 14:08:36 -07:00
2011-05-26 19:45:40 +02:00
2011-05-13 11:45:33 -07:00
2011-05-23 10:47:06 -05:00
2011-05-24 10:21:29 +02:00
2011-05-24 10:21:29 +02:00
2011-05-13 14:37:28 -04:00
2011-05-23 13:59:54 +02:00
2011-05-26 12:03:50 -07:00
2011-05-25 20:43:32 +02:00
2011-05-08 16:41:45 -07:00
2011-05-24 22:55:24 +10:00
2011-05-25 08:39:52 -07:00
2011-05-24 22:55:24 +10:00
2011-05-22 08:47:53 -04:00
2011-05-19 20:50:53 -04:00
2011-05-24 14:33:35 +02:00
2011-04-25 18:14:10 -07:00
2011-05-26 09:20:31 -07:00
2011-05-26 09:20:31 -07:00
2011-05-19 16:55:27 +09:30
2011-05-05 11:10:14 -07:00
2011-05-20 11:46:11 -07:00
2011-05-24 12:10:51 +02:00
2011-05-13 16:31:00 -07:00
2011-05-05 23:16:59 -07:00
2011-05-25 08:39:19 -07:00
2011-05-24 15:22:17 +02:00
2011-05-26 13:38:58 +10:00
2011-05-05 11:10:14 -07:00