iio: st_sensors: add debugfs register read hook
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 12 Aug 2015 08:22:41 +0000 (10:22 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 16 Aug 2015 09:51:25 +0000 (10:51 +0100)
commita0175b9c76f59c1f5706f986d690e27ba06363dd
treedcd09779295650a6f97d62a4858cb2c32ea3d545
parent8d96fc276aaec449871bcb86cef41f3187136f0a
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>
drivers/iio/accel/st_accel_core.c
drivers/iio/common/st_sensors/st_sensors_core.c
drivers/iio/gyro/st_gyro_core.c
drivers/iio/magnetometer/st_magn_core.c
drivers/iio/pressure/st_pressure_core.c
include/linux/iio/common/st_sensors.h