Commit 0bdd35bd authored by Narcisa Ana Maria Vasile's avatar Narcisa Ana Maria Vasile Committed by Jonathan Cameron

staging: iio: adis16240: Group similar macros into enums

Group the scan indexes into an enum.
Signed-off-by: default avatarNarcisa Ana Maria Vasile <narcisaanamaria12@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent a3b2ce96
...@@ -192,12 +192,14 @@ ...@@ -192,12 +192,14 @@
* filling. This may change! * filling. This may change!
*/ */
#define ADIS16240_SCAN_ACC_X 0 enum adis16240_scan {
#define ADIS16240_SCAN_ACC_Y 1 ADIS16240_SCAN_ACC_X,
#define ADIS16240_SCAN_ACC_Z 2 ADIS16240_SCAN_ACC_Y,
#define ADIS16240_SCAN_SUPPLY 3 ADIS16240_SCAN_ACC_Z,
#define ADIS16240_SCAN_AUX_ADC 4 ADIS16240_SCAN_SUPPLY,
#define ADIS16240_SCAN_TEMP 5 ADIS16240_SCAN_AUX_ADC,
ADIS16240_SCAN_TEMP,
};
static ssize_t adis16240_spi_read_signed(struct device *dev, static ssize_t adis16240_spi_read_signed(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment