summaryrefslogtreecommitdiff
path: root/drivers/iio/imu/adis16475.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/imu/adis16475.c')
-rw-r--r--drivers/iio/imu/adis16475.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/iio/imu/adis16475.c b/drivers/iio/imu/adis16475.c
index 02859f461b66..c6dac4fc67a1 100644
--- a/drivers/iio/imu/adis16475.c
+++ b/drivers/iio/imu/adis16475.c
@@ -230,20 +230,17 @@ DEFINE_DEBUGFS_ATTRIBUTE(adis16475_flash_count_fops,
static void adis16475_debugfs_init(struct iio_dev *indio_dev)
{
struct adis16475 *st = iio_priv(indio_dev);
+ struct dentry *d = iio_get_debugfs_dentry(indio_dev);
debugfs_create_file_unsafe("serial_number", 0400,
- indio_dev->debugfs_dentry, st,
- &adis16475_serial_number_fops);
+ d, st, &adis16475_serial_number_fops);
debugfs_create_file_unsafe("product_id", 0400,
- indio_dev->debugfs_dentry, st,
- &adis16475_product_id_fops);
+ d, st, &adis16475_product_id_fops);
debugfs_create_file_unsafe("flash_count", 0400,
- indio_dev->debugfs_dentry, st,
- &adis16475_flash_count_fops);
+ d, st, &adis16475_flash_count_fops);
debugfs_create_file("firmware_revision", 0400,
- indio_dev->debugfs_dentry, st,
- &adis16475_firmware_revision_fops);
- debugfs_create_file("firmware_date", 0400, indio_dev->debugfs_dentry,
+ d, st, &adis16475_firmware_revision_fops);
+ debugfs_create_file("firmware_date", 0400, d,
st, &adis16475_firmware_date_fops);
}
#else