]> git.karo-electronics.de Git - karo-tx-linux.git/commit
backlight: tosa: use devm_gpio_request_one
authorJingoo Han <jg1.han@samsung.com>
Sat, 3 Nov 2012 00:42:43 +0000 (11:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 7 Nov 2012 04:15:23 +0000 (15:15 +1100)
commite5567bfbd59fc3cddeefc81b74a6736366a8de61
tree3886521bd478bbf4f4eec74a96c45090c4c846f6
parentd42c26359f5e5fe48b72cbf9f446a9a2d1ea4359
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