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>
This commit is contained in:

committed by
Jonathan Cameron

parent
d93813520d
commit
2c289e6394
@@ -6,11 +6,9 @@
|
||||
|
||||
/**
|
||||
* struct ak8975_platform_data - AK8975 magnetometer driver platform data
|
||||
* @eoc_gpio: data ready event gpio
|
||||
* @orientation: mounting matrix relative to main hardware
|
||||
*/
|
||||
struct ak8975_platform_data {
|
||||
int eoc_gpio;
|
||||
struct iio_mount_matrix orientation;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user