[PATCH 6/6] iio: pressure: dps310: add debugfs register access
From: Rupesh Majhi
Date: Tue Nov 24 2026 - 01:50:59 EST
Expose the registers through direct_reg_access with the core regmap
helper, so the configuration and status registers can be looked at
through the driver's regmap instead of around it on the bus.
The access is not serialised with the driver beyond the regmap lock.
Reading INT_STS or a result register clears what the driver waits for,
as it would on the bus.
Signed-off-by: Rupesh Majhi <zoone.rupert@xxxxxxxxx>
---
drivers/iio/pressure/dps310.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iio/pressure/dps310.c b/drivers/iio/pressure/dps310.c
index 9ffef150cc4c..257fe25c5ce1 100644
--- a/drivers/iio/pressure/dps310.c
+++ b/drivers/iio/pressure/dps310.c
@@ -1563,6 +1563,7 @@ static const struct iio_info dps310_info = {
.write_raw = dps310_write_raw,
.hwfifo_set_watermark = dps310_hwfifo_set_watermark,
.hwfifo_flush_to_buffer = dps310_hwfifo_flush,
+ .debugfs_reg_access = iio_debugfs_reg_access_regmap,
};
static int dps310_probe(struct i2c_client *client)
--
2.43.0