]> 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>
Tue, 30 Oct 2012 04:15:19 +0000 (15:15 +1100)
commitd3bc874e3a7519a173be9da9fdcc0a3152c101f4
tree4bd86ef0274babfb98cdedbac1651bcd9b94fa8b
parent6ace3a925916bbc8bd59c1ec662060fb42b3d02f
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