iio: light: stk3310: use flags argument of devm_gpiod_get
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 12 Jun 2015 07:04:55 +0000 (09:04 +0200)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 6 Jul 2015 08:10:21 +0000 (10:10 +0200)
commit7d4eb6f2110d9a9f9fe8d39eabddadbd35eb12b2
tree3d3f213d8a08442894b596e6c366267308ccbde2
parent26a5bd26499fba331ecaa1e8ce8cc2b8c6fac569
iio: light: stk3310: use flags argument of 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.

Simplify driver accordingly. Furthermore this is one caller less that
stops us making the flags argument to gpiod_get*() mandatory.

Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
drivers/iio/light/stk3310.c