]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
iio: adis16480: Add debugfs_reg_access entry
authorNuno Sá <nuno.sa@analog.com>
Mon, 28 Oct 2019 16:33:49 +0000 (17:33 +0100)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:22:50 +0000 (14:22 -0300)
BugLink: https://bugs.launchpad.net/bugs/1857158
[ Upstream commit 4c35b7a51e2f291471f7221d112c6a45c63e83bc ]

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: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/iio/imu/adis16480.c

index 7af205e63d987fb26542c249656f9c5ae6e40179..5b8dc70038aaf1f3a21c6641ec1de49380d929d8 100644 (file)
@@ -723,6 +723,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)