Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: iio: accel: adis16209: Improve readability

Lines with #define interlaced with comment lines making a mess.

Separate groups of #define-comment with blank lines.
Separate section title comments with blank lines.

Signed-off-by: Svetlana Orlik <sveta.orlik.code@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Svetlana Orlik and committed by
Greg Kroah-Hartman
328bdff8 0f5c4211

+39
+39
drivers/staging/iio/accel/adis16209.h
··· 5 5 6 6 /* Flash memory write count */ 7 7 #define ADIS16209_FLASH_CNT 0x00 8 + 8 9 /* Output, power supply */ 9 10 #define ADIS16209_SUPPLY_OUT 0x02 11 + 10 12 /* Output, x-axis accelerometer */ 11 13 #define ADIS16209_XACCL_OUT 0x04 14 + 12 15 /* Output, y-axis accelerometer */ 13 16 #define ADIS16209_YACCL_OUT 0x06 17 + 14 18 /* Output, auxiliary ADC input */ 15 19 #define ADIS16209_AUX_ADC 0x08 20 + 16 21 /* Output, temperature */ 17 22 #define ADIS16209_TEMP_OUT 0x0A 23 + 18 24 /* Output, x-axis inclination */ 19 25 #define ADIS16209_XINCL_OUT 0x0C 26 + 20 27 /* Output, y-axis inclination */ 21 28 #define ADIS16209_YINCL_OUT 0x0E 29 + 22 30 /* Output, +/-180 vertical rotational position */ 23 31 #define ADIS16209_ROT_OUT 0x10 32 + 24 33 /* Calibration, x-axis acceleration offset null */ 25 34 #define ADIS16209_XACCL_NULL 0x12 35 + 26 36 /* Calibration, y-axis acceleration offset null */ 27 37 #define ADIS16209_YACCL_NULL 0x14 38 + 28 39 /* Calibration, x-axis inclination offset null */ 29 40 #define ADIS16209_XINCL_NULL 0x16 41 + 30 42 /* Calibration, y-axis inclination offset null */ 31 43 #define ADIS16209_YINCL_NULL 0x18 44 + 32 45 /* Calibration, vertical rotation offset null */ 33 46 #define ADIS16209_ROT_NULL 0x1A 47 + 34 48 /* Alarm 1 amplitude threshold */ 35 49 #define ADIS16209_ALM_MAG1 0x20 50 + 36 51 /* Alarm 2 amplitude threshold */ 37 52 #define ADIS16209_ALM_MAG2 0x22 53 + 38 54 /* Alarm 1, sample period */ 39 55 #define ADIS16209_ALM_SMPL1 0x24 56 + 40 57 /* Alarm 2, sample period */ 41 58 #define ADIS16209_ALM_SMPL2 0x26 59 + 42 60 /* Alarm control */ 43 61 #define ADIS16209_ALM_CTRL 0x28 62 + 44 63 /* Auxiliary DAC data */ 45 64 #define ADIS16209_AUX_DAC 0x30 65 + 46 66 /* General-purpose digital input/output control */ 47 67 #define ADIS16209_GPIO_CTRL 0x32 68 + 48 69 /* Miscellaneous control */ 49 70 #define ADIS16209_MSC_CTRL 0x34 71 + 50 72 /* Internal sample period (rate) control */ 51 73 #define ADIS16209_SMPL_PRD 0x36 74 + 52 75 /* Operation, filter configuration */ 53 76 #define ADIS16209_AVG_CNT 0x38 77 + 54 78 /* Operation, sleep mode control */ 55 79 #define ADIS16209_SLP_CNT 0x3A 80 + 56 81 /* Diagnostics, system status register */ 57 82 #define ADIS16209_DIAG_STAT 0x3C 83 + 58 84 /* Operation, system command register */ 59 85 #define ADIS16209_GLOB_CMD 0x3E 60 86 61 87 /* MSC_CTRL */ 88 + 62 89 /* Self-test at power-on: 1 = disabled, 0 = enabled */ 63 90 #define ADIS16209_MSC_CTRL_PWRUP_SELF_TEST BIT(10) 91 + 64 92 /* Self-test enable */ 65 93 #define ADIS16209_MSC_CTRL_SELF_TEST_EN BIT(8) 94 + 66 95 /* Data-ready enable: 1 = enabled, 0 = disabled */ 67 96 #define ADIS16209_MSC_CTRL_DATA_RDY_EN BIT(2) 97 + 68 98 /* Data-ready polarity: 1 = active high, 0 = active low */ 69 99 #define ADIS16209_MSC_CTRL_ACTIVE_HIGH BIT(1) 100 + 70 101 /* Data-ready line selection: 1 = DIO2, 0 = DIO1 */ 71 102 #define ADIS16209_MSC_CTRL_DATA_RDY_DIO2 BIT(0) 72 103 73 104 /* DIAG_STAT */ 105 + 74 106 /* Alarm 2 status: 1 = alarm active, 0 = alarm inactive */ 75 107 #define ADIS16209_DIAG_STAT_ALARM2 BIT(9) 108 + 76 109 /* Alarm 1 status: 1 = alarm active, 0 = alarm inactive */ 77 110 #define ADIS16209_DIAG_STAT_ALARM1 BIT(8) 111 + 78 112 /* Self-test diagnostic error flag: 1 = error condition, 0 = normal operation */ 79 113 #define ADIS16209_DIAG_STAT_SELFTEST_FAIL_BIT 5 114 + 80 115 /* SPI communications failure */ 81 116 #define ADIS16209_DIAG_STAT_SPI_FAIL_BIT 3 117 + 82 118 /* Flash update failure */ 83 119 #define ADIS16209_DIAG_STAT_FLASH_UPT_BIT 2 120 + 84 121 /* Power supply above 3.625 V */ 85 122 #define ADIS16209_DIAG_STAT_POWER_HIGH_BIT 1 123 + 86 124 /* Power supply below 3.15 V */ 87 125 #define ADIS16209_DIAG_STAT_POWER_LOW_BIT 0 88 126 89 127 /* GLOB_CMD */ 128 + 90 129 #define ADIS16209_GLOB_CMD_SW_RESET BIT(7) 91 130 #define ADIS16209_GLOB_CMD_CLEAR_STAT BIT(4) 92 131 #define ADIS16209_GLOB_CMD_FACTORY_CAL BIT(1)