]> git.karo-electronics.de Git - karo-tx-linux.git/commit
backlight: atmel-pwm-bl: use gpio_is_valid
authorJohan Hovold <jhovold@gmail.com>
Tue, 5 Nov 2013 05:56:44 +0000 (16:56 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:56:44 +0000 (16:56 +1100)
commitce5323fdc78915d1cc3f684a42a841c370a4b8ad
tree1dc0e8ea069a051b8d93392119332d4c80efc8ac
parentdcd8195df073225275d643eaaed4e07dc0f99b1c
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>
drivers/video/backlight/atmel-pwm-bl.c