diff options
author | Jonathan Cameron <jic23@cam.ac.uk> | 2010-07-11 15:39:15 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-07-22 18:38:29 (GMT) |
commit | 69584bd6d257e008fe4eeebd95c318201dc71d83 (patch) | |
tree | a1a0935301cccb6f4023e3f42404e18d6e2af806 /drivers/staging/iio/gyro/adis16260.h | |
parent | 2662051e0868d1bde0abeea19bd54c3c18941afc (diff) | |
download | linux-fsl-qoriq-69584bd6d257e008fe4eeebd95c318201dc71d83.tar.xz |
staging: iio: Fix scan_element naming issue
The addition of a number to the scan_element names caused
an issue in drivers that used either #define or an enum
to provide the number. Before this fix names like
ADIS16350_ACCEL_X_accel_x_en occur rather than 5_accel_x_en.
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/gyro/adis16260.h')
-rw-r--r-- | drivers/staging/iio/gyro/adis16260.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/staging/iio/gyro/adis16260.h b/drivers/staging/iio/gyro/adis16260.h index 9f868b5..812440a 100644 --- a/drivers/staging/iio/gyro/adis16260.h +++ b/drivers/staging/iio/gyro/adis16260.h @@ -111,13 +111,11 @@ int adis16260_set_irq(struct device *dev, bool enable); * filling. This may change! */ -enum adis16260_scan { - ADIS16260_SCAN_SUPPLY, - ADIS16260_SCAN_GYRO, - ADIS16260_SCAN_AUX_ADC, - ADIS16260_SCAN_TEMP, - ADIS16260_SCAN_ANGL, -}; +#define ADIS16260_SCAN_SUPPLY 0 +#define ADIS16260_SCAN_GYRO 1 +#define ADIS16260_SCAN_AUX_ADC 2 +#define ADIS16260_SCAN_TEMP 3 +#define ADIS16260_SCAN_ANGL 4 void adis16260_remove_trigger(struct iio_dev *indio_dev); int adis16260_probe_trigger(struct iio_dev *indio_dev); |