iio: imu: adis16xxx: use helper to access iio core debugfs dir
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Thu, 30 Apr 2020 11:04:22 +0000 (14:04 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 3 May 2020 13:47:56 +0000 (14:47 +0100)
commitb7190859abc0056d9514a9e2ff506850304a1288
treea70a4172ed793feae4f2404541d5855ac589ea26
parent6f1c9e0da9aae51177457731357ae8a2c8af27cd
iio: imu: adis16xxx: use helper to access iio core debugfs dir

The IIO core provides a iio_get_debugfs_dentry() helper.
It seems that the ADIS IMU drivers access that field directly.

This change converts them to use iio_get_debugfs_dentry() instead.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Acked-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/gyro/adis16136.c
drivers/iio/imu/adis16400.c
drivers/iio/imu/adis16460.c
drivers/iio/imu/adis16475.c
drivers/iio/imu/adis16480.c