iio: adis16480: Add debugfs_reg_access entry
authorNuno Sá <nuno.sa@analog.com>
Mon, 28 Oct 2019 16:33:49 +0000 (17:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Dec 2019 09:42:12 +0000 (10:42 +0100)
commitaea2bf997803122b1ecc67bbe77ef83d29ecb46c
treebaa2e2e1abdc7bb5f7b68b851a04e6590aee097e
parentbedf0c0e5515d82f723304db7601f816b1268f81
iio: adis16480: Add debugfs_reg_access entry

[ 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>
drivers/iio/imu/adis16480.c