]> git.karo-electronics.de Git - karo-tx-linux.git/commit
backlight: lms283gf05: use devm_gpio_request_one
authorJingoo Han <jg1.han@samsung.com>
Fri, 9 Nov 2012 03:04:44 +0000 (14:04 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 12 Nov 2012 04:17:18 +0000 (15:17 +1100)
commitb2ce7e34b3eae6f17eafd6897a3f9904fd5481dd
tree6daae5730282a4ac072a79dfe6cf79e098a7c5c6
parente969b9729c55f0dc355666a900e8dda130307dac
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