mbox series

[0/4] iio: imu: drop #ifdef around CONFIG_DEBUG_FS

Message ID 20240809-dev-adis-debugfs-improv-v1-0-d3adb6996518@analog.com (mailing list archive)
Headers show
Series iio: imu: drop #ifdef around CONFIG_DEBUG_FS | expand

Message

Nuno Sa via B4 Relay Aug. 9, 2024, 9:17 a.m. UTC
Hi,

Small series to make the IMUs debugfs code a bit neater. As mentioned in
the commit message, let's allow the compiler to drop any unused instead
of guarding it with #ifdefs.

---
Nuno Sa (4):
      iio: imu: adis16475: drop ifdef around CONFIG_DEBUG_FS
      iio: imu: adis16480: drop ifdef around CONFIG_DEBUG_FS
      iio: imu: adis16400: drop ifdef around CONFIG_DEBUG_FS
      iio: imu: adis16460: drop ifdef around CONFIG_DEBUG_FS

 drivers/iio/imu/adis16400.c | 18 ++++--------------
 drivers/iio/imu/adis16460.c | 18 ++++--------------
 drivers/iio/imu/adis16475.c |  9 +++------
 drivers/iio/imu/adis16480.c | 18 ++++--------------
 4 files changed, 15 insertions(+), 48 deletions(-)
---
base-commit: 7cad163c39cb642ed587d3eeb37a5637ee02740f
change-id: 20240809-dev-adis-debugfs-improv-e007579b5262
--

Thanks!
- Nuno Sá

Comments

Jonathan Cameron Aug. 10, 2024, 10:41 a.m. UTC | #1
On Fri, 09 Aug 2024 11:17:05 +0200
Nuno Sa via B4 Relay <devnull+nuno.sa.analog.com@kernel.org> wrote:

> Hi,
> 
> Small series to make the IMUs debugfs code a bit neater. As mentioned in
> the commit message, let's allow the compiler to drop any unused instead
> of guarding it with #ifdefs.
Applied.
> 
> ---
> Nuno Sa (4):
>       iio: imu: adis16475: drop ifdef around CONFIG_DEBUG_FS
>       iio: imu: adis16480: drop ifdef around CONFIG_DEBUG_FS
>       iio: imu: adis16400: drop ifdef around CONFIG_DEBUG_FS
>       iio: imu: adis16460: drop ifdef around CONFIG_DEBUG_FS
> 
>  drivers/iio/imu/adis16400.c | 18 ++++--------------
>  drivers/iio/imu/adis16460.c | 18 ++++--------------
>  drivers/iio/imu/adis16475.c |  9 +++------
>  drivers/iio/imu/adis16480.c | 18 ++++--------------
>  4 files changed, 15 insertions(+), 48 deletions(-)
> ---
> base-commit: 7cad163c39cb642ed587d3eeb37a5637ee02740f
> change-id: 20240809-dev-adis-debugfs-improv-e007579b5262
> --
> 
> Thanks!
> - Nuno Sá
> 
>