summaryrefslogtreecommitdiffstats
path: root/drivers/iio/pressure/st_pressure_core.c
diff options
context:
space:
mode:
authorLinus Walleij2015-08-12 10:22:41 +0200
committerJonathan Cameron2015-08-16 11:51:25 +0200
commita0175b9c76f59c1f5706f986d690e27ba06363dd (patch)
treedcd09779295650a6f97d62a4858cb2c32ea3d545 /drivers/iio/pressure/st_pressure_core.c
parentDocumentation: iio-trig-sysfs: Add remove_trigger attribute ABI (diff)
downloadkernel-qcow2-linux-a0175b9c76f59c1f5706f986d690e27ba06363dd.tar.gz
kernel-qcow2-linux-a0175b9c76f59c1f5706f986d690e27ba06363dd.tar.xz
kernel-qcow2-linux-a0175b9c76f59c1f5706f986d690e27ba06363dd.zip
iio: st_sensors: add debugfs register read hook
This adds a debugfs hook to read/write registers in the ST sensors using debugfs. Proved to be awesome help when trying to debug why IRQs do not arrive. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Denis Ciocca <denis.ciocca@st.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/pressure/st_pressure_core.c')
-rw-r--r--drivers/iio/pressure/st_pressure_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/pressure/st_pressure_core.c b/drivers/iio/pressure/st_pressure_core.c
index eb41d2b92c24..b39a2fb0671c 100644
--- a/drivers/iio/pressure/st_pressure_core.c
+++ b/drivers/iio/pressure/st_pressure_core.c
@@ -400,6 +400,7 @@ static const struct iio_info press_info = {
.attrs = &st_press_attribute_group,
.read_raw = &st_press_read_raw,
.write_raw = &st_press_write_raw,
+ .debugfs_reg_access = &st_sensors_debugfs_reg_access,
};
#ifdef CONFIG_IIO_TRIGGER