]> 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>
Fri, 2 Nov 2012 05:00:54 +0000 (16:00 +1100)
commit5a27f1807ffc15de87e285e6f1f30e6392bb25bd
treef23d1a3ba66bc0420c1ac2661b53fd7e60b7007f
parent74412c60757f33693b721452890eabc88083dbdb
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