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)
commit5ada4550e86b081b889bced50e5ab6c510f9cdd7
tree3797c038a7e6c3c18a04ab2561cc83fa344c85fa
parent7bb8abe6ed58835c58153d59e4b13513b7306802
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