]> git.karo-electronics.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>
Mon, 12 Nov 2012 04:17:18 +0000 (15:17 +1100)
commitec6bb79156e00c9e5150200492c03291653c58b4
tree71bd8ddfad6c3fb31f5d54669d5e23031ee9cccf
parentb2ce7e34b3eae6f17eafd6897a3f9904fd5481dd
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