OSDN Git Service

leds: aat1290: pass flags parameter to devm_gpiod_get
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 12 Jun 2015 07:35:43 +0000 (00:35 -0700)
committerBryan Wu <cooloney@gmail.com>
Mon, 22 Jun 2015 20:57:24 +0000 (13:57 -0700)
commit8a687719d03131f656d5eb9a578ba3764f31ddab
treea5432828bf1799e60d1835877d5d3c64124e3571
parent5e324ebf014afdde76130f9b4f65ce64746c7af2
leds: aat1290: pass flags parameter to devm_gpiod_get

Since 39b2bbe3d715 (gpio: add flags argument to gpiod_get*() functions)
which appeared in v3.17-rc1, the gpiod_get* functions take an additional
parameter that allows to specify direction and initial value for output.

In this case the driver cannot easily be simplified but as the flags
parameter will become mandatory soon this change is necessary
beforehand.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-aat1290.c