]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: iio: adis16240: Group similar macros into enums
authorNarcisa Ana Maria Vasile <narcisaanamaria12@gmail.com>
Sun, 5 Mar 2017 16:26:54 +0000 (18:26 +0200)
committerJonathan Cameron <jic23@kernel.org>
Mon, 13 Mar 2017 21:20:39 +0000 (21:20 +0000)
Group the scan indexes into an enum.

Signed-off-by: Narcisa Ana Maria Vasile <narcisaanamaria12@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/accel/adis16240.c

index 37a29dccc05ab8b0efc03918d17ec8c4a4b76f28..b0f449dda88bf309a22e595b94b10eeb4ef07f51 100644 (file)
  * filling. This may change!
  */
 
-#define ADIS16240_SCAN_ACC_X   0
-#define ADIS16240_SCAN_ACC_Y   1
-#define ADIS16240_SCAN_ACC_Z   2
-#define ADIS16240_SCAN_SUPPLY  3
-#define ADIS16240_SCAN_AUX_ADC 4
-#define ADIS16240_SCAN_TEMP    5
+enum adis16240_scan {
+       ADIS16240_SCAN_ACC_X,
+       ADIS16240_SCAN_ACC_Y,
+       ADIS16240_SCAN_ACC_Z,
+       ADIS16240_SCAN_SUPPLY,
+       ADIS16240_SCAN_AUX_ADC,
+       ADIS16240_SCAN_TEMP,
+};
 
 static ssize_t adis16240_spi_read_signed(struct device *dev,
                                         struct device_attribute *attr,