Re: [PATCH v2 1/1] iio: core: Split debugfs routines

From: Andy Shevchenko

Date: Wed Nov 25 2026 - 09:20:44 EST


On Wed, Nov 25, 2026 at 02:59:40PM +0100, Andy Shevchenko wrote:
> Split debugfs routines into a separate file for easier maintenance.
> No functional changes intended.

...

> +#if defined(CONFIG_DEBUG_FS)
> +void iio_debugfs_create(void);
> +void iio_debugfs_remove(void);
> +
> +void iio_device_unregister_debugfs(struct iio_dev *indio_dev);
> +void iio_device_register_debugfs(struct iio_dev *indio_dev);
> +#else
> +static inline void iio_debugfs_create(void) {}
> +static inline void iio_debugfs_remove(void) {}
> +
> +static void iio_device_register_debugfs(struct iio_dev *indio_dev) {}
> +static void iio_device_unregister_debugfs(struct iio_dev *indio_dev) {}

Gah, these missing inline keyword... Please, add them when applying.
Or tell me that I need to send a v3.

static inline void iio_device_register_debugfs(struct iio_dev *indio_dev) {}
static inline void iio_device_unregister_debugfs(struct iio_dev *indio_dev) {}

> +#endif /* CONFIG_DEBUG_FS */

--
With Best Regards,
Andy Shevchenko