diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-11-20 13:36:00 +0000 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-11-20 18:47:21 +0000 |
commit | 78026a6fde8f7b0ca77c059da11f476d69dfde3b (patch) | |
tree | abb879862232984c237630668a85e93ba9bd7bf3 /include/linux/iio | |
parent | 709ab36e9559ff5c7df6e6f2d9e3c4a4410f8d49 (diff) | |
download | linux-stable-78026a6fde8f7b0ca77c059da11f476d69dfde3b.tar.gz linux-stable-78026a6fde8f7b0ca77c059da11f476d69dfde3b.tar.bz2 linux-stable-78026a6fde8f7b0ca77c059da11f476d69dfde3b.zip |
iio:imu:adis: Add debugfs register access support
Provide a IIO debugfs register access function for the ADIS library. This
function can be used by individual drivers to allow raw register access via
debugfs.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/iio')
-rw-r--r-- | include/linux/iio/imu/adis.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/iio/imu/adis.h b/include/linux/iio/imu/adis.h index 8c3304d44b97..fce7bc3ba0b5 100644 --- a/include/linux/iio/imu/adis.h +++ b/include/linux/iio/imu/adis.h @@ -183,4 +183,15 @@ static inline void adis_remove_trigger(struct adis *adis) #endif /* CONFIG_IIO_BUFFER */ +#ifdef CONFIG_DEBUG_FS + +int adis_debugfs_reg_access(struct iio_dev *indio_dev, + unsigned int reg, unsigned int writeval, unsigned int *readval); + +#else + +#define adis_debugfs_reg_access NULL + +#endif + #endif |