]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
backlight: tosa: use devm_gpio_request_one
authorJingoo Han <jg1.han@samsung.com>
Fri, 9 Nov 2012 03:04:45 +0000 (14:04 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Nov 2012 04:55:11 +0000 (15:55 +1100)
commit0bdf6d1ae680bc83cc28e33792418ac352d28f58
tree3a29a02aa34fddfc3055b138ba9b257bee2bc2b1
parent78ce34ffe6c2397bd35c525fd6ab23c6a8f64acf
backlight: tosa: use devm_gpio_request_one

By using devm_gpio_request_one it is possible to set the direction and
initial value in one shot.  Thus, using devm_gpio_request_one can make the
code simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/backlight/tosa_bl.c
drivers/video/backlight/tosa_lcd.c