diff options
author | Narcisa Ana Maria Vasile <narcisaanamaria12@gmail.com> | 2017-03-05 18:26:41 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-03-13 21:20:38 +0000 |
commit | a3b2ce9635ebfc034d97349aa2c626c4c3b00245 (patch) | |
tree | b31554d77ee9042d5c59c81c6ea23ab1d18fd5d9 /drivers | |
parent | e7d87687cbe9d94b2d3799dd31681b87adee84be (diff) |
staging: iio: adis16209: Group similar macros into enums
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/iio/accel/adis16209.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/drivers/staging/iio/accel/adis16209.c b/drivers/staging/iio/accel/adis16209.c index 56bc2acb2e05..28705bf4ef90 100644 --- a/drivers/staging/iio/accel/adis16209.c +++ b/drivers/staging/iio/accel/adis16209.c @@ -152,14 +152,16 @@ #define ADIS16209_ERROR_ACTIVE BIT(14) -#define ADIS16209_SCAN_SUPPLY 0 -#define ADIS16209_SCAN_ACC_X 1 -#define ADIS16209_SCAN_ACC_Y 2 -#define ADIS16209_SCAN_AUX_ADC 3 -#define ADIS16209_SCAN_TEMP 4 -#define ADIS16209_SCAN_INCLI_X 5 -#define ADIS16209_SCAN_INCLI_Y 6 -#define ADIS16209_SCAN_ROT 7 +enum adis16209_scan { + ADIS16209_SCAN_SUPPLY, + ADIS16209_SCAN_ACC_X, + ADIS16209_SCAN_ACC_Y, + ADIS16209_SCAN_AUX_ADC, + ADIS16209_SCAN_TEMP, + ADIS16209_SCAN_INCLI_X, + ADIS16209_SCAN_INCLI_Y, + ADIS16209_SCAN_ROT, +}; static const u8 adis16209_addresses[8][1] = { [ADIS16209_SCAN_SUPPLY] = { }, |