iio: ak8975: Convert to use GPIO descriptor
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 2 Dec 2019 08:17:30 +0000 (09:17 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 15 Dec 2019 11:42:14 +0000 (11:42 +0000)
commit2c289e63944467a41c6703f46bcf2f3340713510
tree9ca87fa1d3207634a8d57b22d74c907064df3315
parentd93813520df0ff6e0aec7c8859c56a659417f9b7
iio: ak8975: Convert to use GPIO descriptor

The end-of-conversion (EOC) GPIO line is better to grab using
a GPIO descriptor. We drop the pdata for this: clients using board
files can use machine descriptor tables to pass this GPIO from
static data.

Cc: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/magnetometer/ak8975.c
include/linux/iio/magnetometer/ak8975.h