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

staging: iio: adis16209: 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 e7d87687
...@@ -152,14 +152,16 @@ ...@@ -152,14 +152,16 @@
#define ADIS16209_ERROR_ACTIVE BIT(14) #define ADIS16209_ERROR_ACTIVE BIT(14)
#define ADIS16209_SCAN_SUPPLY 0 enum adis16209_scan {
#define ADIS16209_SCAN_ACC_X 1 ADIS16209_SCAN_SUPPLY,
#define ADIS16209_SCAN_ACC_Y 2 ADIS16209_SCAN_ACC_X,
#define ADIS16209_SCAN_AUX_ADC 3 ADIS16209_SCAN_ACC_Y,
#define ADIS16209_SCAN_TEMP 4 ADIS16209_SCAN_AUX_ADC,
#define ADIS16209_SCAN_INCLI_X 5 ADIS16209_SCAN_TEMP,
#define ADIS16209_SCAN_INCLI_Y 6 ADIS16209_SCAN_INCLI_X,
#define ADIS16209_SCAN_ROT 7 ADIS16209_SCAN_INCLI_Y,
ADIS16209_SCAN_ROT,
};
static const u8 adis16209_addresses[8][1] = { static const u8 adis16209_addresses[8][1] = {
[ADIS16209_SCAN_SUPPLY] = { }, [ADIS16209_SCAN_SUPPLY] = { },
......
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