]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
backlight: tosa: use devm_gpio_request_one
authorJingoo Han <jg1.han@samsung.com>
Thu, 15 Nov 2012 02:38:17 +0000 (13:38 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 15 Nov 2012 06:32:03 +0000 (17:32 +1100)
commit0acb16995ca87692f112c147ee0b3389d8ba144a
treeb00ffa2d891ddd7c65288407591f2a13b18988a3
parent36e3083dbb322866ae854c746104c11bdf29f661
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