]> git.baikalelectronics.ru Git - kernel.git/commit
backlight: atmel-pwm-bl: use gpio_is_valid
authorJohan Hovold <jhovold@gmail.com>
Tue, 12 Nov 2013 23:09:44 +0000 (15:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Nov 2013 03:09:21 +0000 (12:09 +0900)
commit2634e573d0db4e6f21a392c1138f05105361065d
tree3797c038a7e6c3c18a04ab2561cc83fa344c85fa
parent244e96274e7212982bb35e0d239b950c9b92014b
backlight: atmel-pwm-bl: use gpio_is_valid

Use gpio_is_valid rather than open coding the more restrictive != -1
test.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/atmel-pwm-bl.c