Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a12dd9ed authored by Nuno Sá's avatar Nuno Sá Committed by Greg Kroah-Hartman
Browse files

iio: adis16480: Add debugfs_reg_access entry



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: 2f3abe6c ("iio:imu: Add support for the ADIS16480 and similar IMUs")
Signed-off-by: default avatarNuno Sá <nuno.sa@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 11cc8bb5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -727,6 +727,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)