| From 3bef6da5e0d9859e4e81d0966d9b3c50389407c9 Mon Sep 17 00:00:00 2001 |
| From: =?UTF-8?q?Nuno=20S=C3=A1?= <nuno.sa@analog.com> |
| Date: Mon, 28 Oct 2019 17:33:49 +0100 |
| Subject: [PATCH] iio: adis16480: Add debugfs_reg_access entry |
| MIME-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| commit 4c35b7a51e2f291471f7221d112c6a45c63e83bc upstream. |
| |
| The driver is defining debugfs entries by calling |
| `adis16480_debugfs_init()`. However, those entries are attached to the |
| iio_dev debugfs entry which won't exist if no debugfs_reg_access |
| callback is provided. |
| |
| Fixes: 2f3abe6cbb6c ("iio:imu: Add support for the ADIS16480 and similar IMUs") |
| Signed-off-by: Nuno Sá <nuno.sa@analog.com> |
| Cc: <Stable@vger.kernel.org> |
| Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/drivers/iio/imu/adis16480.c b/drivers/iio/imu/adis16480.c |
| index 8743b2f376e2..900cad7abf25 100644 |
| --- a/drivers/iio/imu/adis16480.c |
| +++ b/drivers/iio/imu/adis16480.c |
| @@ -919,6 +919,7 @@ static const struct iio_info adis16480_info = { |
| .read_raw = &adis16480_read_raw, |
| .write_raw = &adis16480_write_raw, |
| .update_scan_mode = adis_update_scan_mode, |
| + .debugfs_reg_access = adis_debugfs_reg_access, |
| }; |
| |
| static int adis16480_stop_device(struct iio_dev *indio_dev) |
| -- |
| 2.7.4 |
| |