]> git.karo-electronics.de Git - karo-tx-linux.git/commit
backlight: lms283gf05: use devm_gpio_request_one
authorJingoo Han <jg1.han@samsung.com>
Thu, 25 Oct 2012 01:15:01 +0000 (12:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 31 Oct 2012 05:49:52 +0000 (16:49 +1100)
commit8ab134a984474ce1cccea153a4c559d304dde72d
tree5d1fffd07039c880c675539b63ce765914304059
parent630d4729644ae8c73cffea9b0232bdd17e8a23e6
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