diff options
| author | Lars-Peter Clausen <lars@metafoo.de> | 2012-11-20 08:36:00 -0500 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2012-11-20 13:47:21 -0500 |
| commit | 78026a6fde8f7b0ca77c059da11f476d69dfde3b (patch) | |
| tree | abb879862232984c237630668a85e93ba9bd7bf3 /include/linux/iio | |
| parent | 709ab36e9559ff5c7df6e6f2d9e3c4a4410f8d49 (diff) | |
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) | |||
| 183 | 183 | ||
| 184 | #endif /* CONFIG_IIO_BUFFER */ | 184 | #endif /* CONFIG_IIO_BUFFER */ |
| 185 | 185 | ||
| 186 | #ifdef CONFIG_DEBUG_FS | ||
| 187 | |||
| 188 | int adis_debugfs_reg_access(struct iio_dev *indio_dev, | ||
| 189 | unsigned int reg, unsigned int writeval, unsigned int *readval); | ||
| 190 | |||
| 191 | #else | ||
| 192 | |||
| 193 | #define adis_debugfs_reg_access NULL | ||
| 194 | |||
| 195 | #endif | ||
| 196 | |||
| 186 | #endif | 197 | #endif |
