]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: imu: adis16480: drop ifdef around CONFIG_DEBUG_FS
authorNuno Sa <nuno.sa@analog.com>
Fri, 9 Aug 2024 09:17:07 +0000 (11:17 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 10 Aug 2024 10:39:57 +0000 (11:39 +0100)
commit7f5d956d3f955688aefddc51fb342f7bdd0d2cef
tree22f4e389f2b73b68e2532c3b506c162f5305097f
parentcec920f67e562821812b10f78334d91d81a4e26f
iio: imu: adis16480: drop ifdef around CONFIG_DEBUG_FS

Use IS_ENABLED(CONFIG_DEBUG_FS) to return in case debugfs is not present.
Since this is known at compile time, it allows the compiler to drop any
unused code. Therefore no need to wrap the code with #ifdef.

While at it make adis16480_debugfs_init() void as the return code is
ignored.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240809-dev-adis-debugfs-improv-v1-2-d3adb6996518@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/adis16480.c