summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorJoe Perches2011-05-11 01:23:07 +0200
committerGrant Likely2011-05-27 05:02:43 +0200
commit3474cb3cc0140f9cf6ca56983f8180b4b4c5c36a (patch)
tree73abf5a283fb330ef15c7cb8e9d0cc264f03ab5f /include/media
parentgpio: Move the s5pc100 GPIO to drivers/gpio (diff)
downloadkernel-qcow2-linux-3474cb3cc0140f9cf6ca56983f8180b4b4c5c36a.tar.gz
kernel-qcow2-linux-3474cb3cc0140f9cf6ca56983f8180b4b4c5c36a.tar.xz
kernel-qcow2-linux-3474cb3cc0140f9cf6ca56983f8180b4b4c5c36a.zip
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>
Diffstat (limited to 'include/media')
0 files changed, 0 insertions, 0 deletions