]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: tas2781: Move the "include linux/debugfs.h" into tas2781.h
authorShenghao Ding <shenghao-ding@ti.com>
Thu, 12 Jun 2025 04:42:52 +0000 (12:42 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 12 Jun 2025 12:22:05 +0000 (13:22 +0100)
Move the include linux/debugfs.h into tas2781.h for code clean.

Signed-off-by: Shenghao Ding <shenghao-ding@ti.com>
Link: https://patch.msgid.link/20250612044252.1025-1-shenghao-ding@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/tas2781.h
sound/soc/codecs/tas2781-i2c.c

index 40cd3bd079b51a153cb57e562502aa2ae5ddcc5f..3875e92f1ec5af88cdcee8830ed125a7e3bfaeb1 100644 (file)
 #ifndef __TAS2781_H__
 #define __TAS2781_H__
 
+#ifdef CONFIG_SND_SOC_TAS2781_ACOUST_I2C
+#include <linux/debugfs.h>
+#endif
+
 #include "tas2781-dsp.h"
 
 /* version number */
index c40d8f754d89ab7f4ccde41059a20821620bfdaa..9f4d965a1335117fe8946d2ec8beee4fe96836c3 100644 (file)
@@ -14,9 +14,6 @@
 //
 
 #include <linux/crc8.h>
-#ifdef CONFIG_SND_SOC_TAS2781_ACOUST_I2C
-#include <linux/debugfs.h>
-#endif
 #include <linux/firmware.h>
 #include <linux/gpio/consumer.h>
 #include <linux/i2c.h>