staging: iio: adis16240: 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>
This commit is contained in:
Родитель
a3b2ce9635
Коммит
0bdd35bd95
|
@ -192,12 +192,14 @@
|
|||
* 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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче