]> git.baikalelectronics.ru Git - kernel.git/commit
backlight: pwm_bl: Simplify usage of devm_gpiod_get_optional
authorAxel Lin <axel.lin@ingics.com>
Sat, 16 May 2015 14:08:10 +0000 (22:08 +0800)
committerLee Jones <lee.jones@linaro.org>
Tue, 23 Jun 2015 14:47:34 +0000 (15:47 +0100)
commit7c84ca4cc00a2d5b4ecc795b04e2ba0fa5e2a7c5
tree8aea93f7163c652a3b485bc91e14bd7fd1a6be93
parentd38c4fff679cff40c7e1ebbde70b6c51a7816e4a
backlight: pwm_bl: Simplify usage of devm_gpiod_get_optional

Since f9251f4c2347 (gpio: add flags argument to gpiod_get*() functions),
the gpiod_get* functions take an additional parameter that allows to
specify direction and initial value for output.
Simplify the usage of devm_gpiod_get_optional accordingly.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/pwm_bl.c