]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1d7d52998503a7473db07ccfdf96b86c955a1851
treea70a4172ed793feae4f2404541d5855ac589ea26
parent77312af40eb702a32fef9786d6c59bb0d70b8de6
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