Skip to content

Commit 10dd571

Browse files
commodojic23
authored andcommitted
iio: adis162xx: fix low-power docs & reports
All current ADIS162XX drivers have incorrect values defined via comments. Also, when an error is reported the printed value is incorrect. The functionality itself isn't affected, so it's not a critical issue. And since the change is trivial, it was included in a single patch that fixes these in one go. All values were correlated with the ones specified in the data-sheets. Signed-off-by: Alexandru Ardelean <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 67009e1 commit 10dd571

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

drivers/iio/accel/adis16201.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
#define ADIS16201_DIAG_STAT_FLASH_UPT_FAIL_BIT 2
7272
/* Power supply above 3.625 V */
7373
#define ADIS16201_DIAG_STAT_POWER_HIGH_BIT 1
74-
/* Power supply below 3.15 V */
74+
/* Power supply below 2.975 V */
7575
#define ADIS16201_DIAG_STAT_POWER_LOW_BIT 0
7676

7777
/* System Command Register Definition */
@@ -231,7 +231,7 @@ static const char * const adis16201_status_error_msgs[] = {
231231
[ADIS16201_DIAG_STAT_SPI_FAIL_BIT] = "SPI failure",
232232
[ADIS16201_DIAG_STAT_FLASH_UPT_FAIL_BIT] = "Flash update failed",
233233
[ADIS16201_DIAG_STAT_POWER_HIGH_BIT] = "Power supply above 3.625V",
234-
[ADIS16201_DIAG_STAT_POWER_LOW_BIT] = "Power supply below 3.15V",
234+
[ADIS16201_DIAG_STAT_POWER_LOW_BIT] = "Power supply below 2.975V",
235235
};
236236

237237
static const struct adis_data adis16201_data = {

drivers/iio/accel/adis16209.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
#define ADIS16209_STAT_FLASH_UPT_FAIL_BIT 2
7474
/* Power supply above 3.625 V */
7575
#define ADIS16209_STAT_POWER_HIGH_BIT 1
76-
/* Power supply below 3.15 V */
76+
/* Power supply below 2.975 V */
7777
#define ADIS16209_STAT_POWER_LOW_BIT 0
7878

7979
#define ADIS16209_CMD_REG 0x3E
@@ -241,7 +241,7 @@ static const char * const adis16209_status_error_msgs[] = {
241241
[ADIS16209_STAT_SPI_FAIL_BIT] = "SPI failure",
242242
[ADIS16209_STAT_FLASH_UPT_FAIL_BIT] = "Flash update failed",
243243
[ADIS16209_STAT_POWER_HIGH_BIT] = "Power supply above 3.625V",
244-
[ADIS16209_STAT_POWER_LOW_BIT] = "Power supply below 3.15V",
244+
[ADIS16209_STAT_POWER_LOW_BIT] = "Power supply below 2.975V",
245245
};
246246

247247
static const struct adis_data adis16209_data = {

drivers/staging/iio/accel/adis16203.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
/* Power supply above 3.625 V */
123123
#define ADIS16203_DIAG_STAT_POWER_HIGH_BIT 1
124124

125-
/* Power supply below 3.15 V */
125+
/* Power supply below 2.975 V */
126126
#define ADIS16203_DIAG_STAT_POWER_LOW_BIT 0
127127

128128
/* GLOB_CMD */
@@ -234,7 +234,7 @@ static const char * const adis16203_status_error_msgs[] = {
234234
[ADIS16203_DIAG_STAT_SPI_FAIL_BIT] = "SPI failure",
235235
[ADIS16203_DIAG_STAT_FLASH_UPT_BIT] = "Flash update failed",
236236
[ADIS16203_DIAG_STAT_POWER_HIGH_BIT] = "Power supply above 3.625V",
237-
[ADIS16203_DIAG_STAT_POWER_LOW_BIT] = "Power supply below 3.15V",
237+
[ADIS16203_DIAG_STAT_POWER_LOW_BIT] = "Power supply below 2.975V",
238238
};
239239

240240
static const struct adis_data adis16203_data = {

drivers/staging/iio/accel/adis16240.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
/* Power supply above 3.625 V */
176176
#define ADIS16240_DIAG_STAT_POWER_HIGH_BIT 1
177177

178-
/* Power supply below 3.15 V */
178+
/* Power supply below 2.225 V */
179179
#define ADIS16240_DIAG_STAT_POWER_LOW_BIT 0
180180

181181
/* GLOB_CMD */

0 commit comments

Comments
 (0)