]> git.karo-electronics.de Git - karo-tx-linux.git/commit
backlight: tosa: use devm_gpio_request_one
authorJingoo Han <jg1.han@samsung.com>
Tue, 23 Oct 2012 02:50:30 +0000 (13:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 24 Oct 2012 03:20:21 +0000 (14:20 +1100)
commitcf16130dba4b3336c89757833c5993b5cc15cd1e
treef2a10dbc5285f122e343e6b86e3de0d8090e5132
parentf197512cd0e714db2b68491c9c30422f5bb955c9
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