[PATCH 1/7] iio: pressure: dps310: sort register field defines low to high
From: Rupesh Majhi
Date: Mon Nov 23 2026 - 17:07:03 EST
Some field defines run from the high bit down, others from the low bit
up. Sort them all low to high.
Suggested-by: David Lechner <dlechner@xxxxxxxxxxxx>
Signed-off-by: Rupesh Majhi <zoone.rupert@xxxxxxxxx>
---
drivers/iio/pressure/dps310.c | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/drivers/iio/pressure/dps310.c b/drivers/iio/pressure/dps310.c
index 9ffef150cc4c..02dbc5a8ac37 100644
--- a/drivers/iio/pressure/dps310.c
+++ b/drivers/iio/pressure/dps310.c
@@ -51,13 +51,13 @@
#define DPS310_TMP_B1 0x04
#define DPS310_TMP_B2 0x05
#define DPS310_PRS_CFG 0x06
-#define DPS310_PRS_RATE_BITS GENMASK(6, 4)
#define DPS310_PRS_PRC_BITS GENMASK(3, 0)
+#define DPS310_PRS_RATE_BITS GENMASK(6, 4)
#define DPS310_TMP_CFG 0x07
-#define DPS310_TMP_RATE_BITS GENMASK(6, 4)
-#define DPS310_TMP_RATE_1SPS 0
#define DPS310_TMP_PRC_BITS GENMASK(3, 0)
#define DPS310_TMP_PRC_1 0
+#define DPS310_TMP_RATE_BITS GENMASK(6, 4)
+#define DPS310_TMP_RATE_1SPS 0
#define DPS310_TMP_EXT BIT(7)
#define DPS310_MEAS_CFG 0x08
#define DPS310_MEAS_CTRL_BITS GENMASK(2, 0)
@@ -69,19 +69,19 @@
#define DPS310_SENSOR_RDY BIT(6)
#define DPS310_COEF_RDY BIT(7)
#define DPS310_CFG_REG 0x09
-#define DPS310_INT_HL BIT(7)
-#define DPS310_INT_TMP BIT(5)
-#define DPS310_INT_PRS BIT(4)
-#define DPS310_TMP_SHIFT_EN BIT(3)
-#define DPS310_PRS_SHIFT_EN BIT(2)
-#define DPS310_FIFO_EN BIT(1)
#define DPS310_SPI_EN BIT(0)
+#define DPS310_FIFO_EN BIT(1)
+#define DPS310_PRS_SHIFT_EN BIT(2)
+#define DPS310_TMP_SHIFT_EN BIT(3)
+#define DPS310_INT_PRS BIT(4)
+#define DPS310_INT_TMP BIT(5)
+#define DPS310_INT_HL BIT(7)
#define DPS310_INT_STS 0x0a
-#define DPS310_INT_STS_TMP BIT(1)
#define DPS310_INT_STS_PRS BIT(0)
+#define DPS310_INT_STS_TMP BIT(1)
#define DPS310_RESET 0x0c
-#define DPS310_FIFO_FLUSH BIT(7)
#define DPS310_RESET_MAGIC 0x09
+#define DPS310_FIFO_FLUSH BIT(7)
#define DPS310_COEF_BASE 0x10
#define DPS310_COEF_LEN 18
#define SPL07_COEF_LEN 21
--
2.43.0