]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
backlight: lms283gf05: 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)
commit36e3083dbb322866ae854c746104c11bdf29f661
tree778eb5adb013b3a51ee1342195b4848c8ec82478
parentbaca4bbe950e982bcc9ee05e18abb734631057f2
backlight: lms283gf05: 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>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/backlight/lms283gf05.c