iio: improve usage of gpiod API
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 18 Feb 2015 12:47:11 +0000 (13:47 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 22 Feb 2015 09:49:22 +0000 (09:49 +0000)
commitb457f53a2afa7de3cecdec1772fbd522b98afc49
tree28998a43fc28d1a630f3dd24d3618a7a4741929b
parent1a179a14d152467da7038205af52883f38973afe
iio: improve usage of gpiod API

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
outputs.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/bmc150-accel.c
drivers/iio/accel/kxcjk-1013.c
drivers/iio/accel/mma9551.c
drivers/iio/accel/mma9553.c
drivers/iio/gyro/bmg160.c
drivers/iio/imu/kmx61.c
drivers/iio/proximity/sx9500.c