]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
ASoC: qcom: reduce number of binding headers includes
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 5 Oct 2023 07:52:50 +0000 (09:52 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 9 Oct 2023 12:14:19 +0000 (13:14 +0100)
Move the includes of binding headers from Qualcomm SoC sound drivers
headers to unit files actually using these bindings.  This reduces the
amount of work for C preprocessor and makes usage of bindings easier to
follow.  No impact expected on the final binaries.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20231005075250.88159-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
19 files changed:
sound/soc/qcom/apq8016_sbc.c
sound/soc/qcom/common.c
sound/soc/qcom/qdsp6/q6afe-clocks.c
sound/soc/qcom/qdsp6/q6afe-dai.c
sound/soc/qcom/qdsp6/q6afe.c
sound/soc/qcom/qdsp6/q6afe.h
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
sound/soc/qcom/qdsp6/q6apm.h
sound/soc/qcom/qdsp6/q6asm-dai.c
sound/soc/qcom/qdsp6/q6asm.c
sound/soc/qcom/qdsp6/q6asm.h
sound/soc/qcom/qdsp6/q6prm-clocks.c
sound/soc/qcom/qdsp6/q6routing.c
sound/soc/qcom/sc7180.c
sound/soc/qcom/sc7280.c
sound/soc/qcom/sc8280xp.c
sound/soc/qcom/sdm845.c
sound/soc/qcom/sdw.c
sound/soc/qcom/sm8250.c

index ff9f6a1c95df19b233ee876c440ba5f21d55d9a5..efbdbb4dd75380a7c0ac59d2ec1c437238a486cc 100644 (file)
@@ -16,6 +16,7 @@
 #include <sound/soc.h>
 #include <uapi/linux/input-event-codes.h>
 #include <dt-bindings/sound/apq8016-lpass.h>
+#include <dt-bindings/sound/qcom,q6afe.h>
 #include "common.h"
 #include "qdsp6/q6afe.h"
 
index f2d1e3009cd23c85a2ae29f4f8c0a487938694bd..483bbf53a541518f53d17c7c5d62d99fe7ee92a2 100644 (file)
@@ -2,10 +2,10 @@
 // Copyright (c) 2018, Linaro Limited.
 // Copyright (c) 2018, The Linux Foundation. All rights reserved.
 
+#include <dt-bindings/sound/qcom,q6afe.h>
 #include <linux/module.h>
 #include <sound/jack.h>
 #include <linux/input-event-codes.h>
-#include "qdsp6/q6afe.h"
 #include "common.h"
 
 static const struct snd_soc_dapm_widget qcom_jack_snd_widgets[] = {
index 1ccab64ff00b91301e71d2a01e748714b9a66b12..84b9018c36bab39d214a7392cfee0900db07a820 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 // Copyright (c) 2020, Linaro Limited
 
+#include <dt-bindings/sound/qcom,q6afe.h>
 #include <linux/err.h>
 #include <linux/init.h>
 #include <linux/clk-provider.h>
index 3faa7e0eb0dd6a7441628d1ab7c4bd7773cda969..a9c4f896a7dfd64af3f3a51ebba72e6c5e960586 100644 (file)
@@ -2,6 +2,7 @@
 // Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
 // Copyright (c) 2018, Linaro Limited
 
+#include <dt-bindings/sound/qcom,q6afe.h>
 #include <linux/err.h>
 #include <linux/init.h>
 #include <linux/module.h>
index 919e326b9462b39dc316506c8c2987b699f93c4b..91d39f6ad0bd9c9a35aad9bd2f2d26eadeff04f3 100644 (file)
@@ -2,6 +2,7 @@
 // Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
 // Copyright (c) 2018, Linaro Limited
 
+#include <dt-bindings/sound/qcom,q6afe.h>
 #include <linux/slab.h>
 #include <linux/kernel.h>
 #include <linux/uaccess.h>
index 30fd77e2f458ca24dc2983e618b3ed7daaa5af43..65d0676075e1361c9481319a682e51b544874b61 100644 (file)
@@ -3,8 +3,6 @@
 #ifndef __Q6AFE_H__
 #define __Q6AFE_H__
 
-#include <dt-bindings/sound/qcom,q6afe.h>
-
 #define AFE_PORT_MAX           129
 
 #define MSM_AFE_PORT_TYPE_RX 0
index 7ad604b80e25ec943bbe7f12bef22a7701e1216a..a3864eea02d5fd911a7efc8a7f7efdcf6d86ff5e 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 // Copyright (c) 2021, Linaro Limited
 
+#include <dt-bindings/sound/qcom,q6dsp-lpass-ports.h>
 #include <linux/err.h>
 #include <linux/init.h>
 #include <linux/module.h>
index f486bd639b9f0d277b6b28937f65d3b8c5436f18..c248c8d2b1ab7f253c8311fdd0b6e4650accbec7 100644 (file)
@@ -13,7 +13,6 @@
 #include <linux/of_platform.h>
 #include <linux/jiffies.h>
 #include <linux/soc/qcom/apr.h>
-#include <dt-bindings/sound/qcom,q6dsp-lpass-ports.h>
 #include "audioreach.h"
 
 #define APM_PORT_MAX           127
index 5e14cd0a38deb659a02fc3daca151700e1f203b6..a7e37c6e4e9209ab4109349a1d225b9f347bab30 100644 (file)
@@ -2,6 +2,7 @@
 // Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
 // Copyright (c) 2018, Linaro Limited
 
+#include <dt-bindings/sound/qcom,q6asm.h>
 #include <linux/init.h>
 #include <linux/err.h>
 #include <linux/module.h>
index 195780f75d05d2864d8f18e2ddd4636ff7494060..06a802f9dba5c3a4677b5078d3bbc4c7dc4cae77 100644 (file)
@@ -2,6 +2,7 @@
 // Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
 // Copyright (c) 2018, Linaro Limited
 
+#include <dt-bindings/sound/qcom,q6asm.h>
 #include <linux/mutex.h>
 #include <linux/wait.h>
 #include <linux/module.h>
index 394604c349432f903136fdda59ddfec7e994d528..0103d8dae5dae654ee5cca2f678b59845ebd953d 100644 (file)
@@ -2,7 +2,6 @@
 #ifndef __Q6_ASM_H__
 #define __Q6_ASM_H__
 #include "q6dsp-common.h"
-#include <dt-bindings/sound/qcom,q6asm.h>
 
 /* ASM client callback events */
 #define CMD_PAUSE                      0x0001
index 73b0cbac73d4f3b26b13a166467ddeb44fbdeb4c..4c574b48ab0040bc39ae16ec324b41dfc152b408 100644 (file)
@@ -1,13 +1,13 @@
 // SPDX-License-Identifier: GPL-2.0
 // Copyright (c) 2021, Linaro Limited
 
+#include <dt-bindings/sound/qcom,q6dsp-lpass-ports.h>
 #include <linux/err.h>
 #include <linux/init.h>
 #include <linux/clk-provider.h>
 #include <linux/module.h>
 #include <linux/device.h>
 #include <linux/platform_device.h>
-#include <dt-bindings/sound/qcom,q6dsp-lpass-ports.h>
 #include "q6dsp-lpass-clocks.h"
 #include "q6prm.h"
 
index c583faae3a3e4d541d1c8d176239f09d29cc762c..c0856c10d0a8c8d834a81221006b529e16eef47b 100644 (file)
@@ -2,6 +2,8 @@
 // Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
 // Copyright (c) 2018, Linaro Limited
 
+#include <dt-bindings/sound/qcom,q6asm.h>
+#include <dt-bindings/sound/qcom,q6afe.h>
 #include <linux/init.h>
 #include <linux/err.h>
 #include <linux/module.h>
index d1fd40e3f7a9d8e92b51e21c1187cbf93ae203da..21becfd5aff4c75c2b9bfd8a092626649c9c76e3 100644 (file)
@@ -19,7 +19,6 @@
 #include "../codecs/rt5682.h"
 #include "../codecs/rt5682s.h"
 #include "common.h"
-#include "lpass.h"
 
 #define DEFAULT_MCLK_RATE              19200000
 #define RT5682_PLL1_FREQ (48000 * 512)
index 095756883050e97a283b23ce5b8db4599b8c2415..f61989d6b57d090c34bde33dc94cbf94337fac82 100644 (file)
@@ -5,6 +5,7 @@
 // ALSA SoC Machine driver for sc7280
 
 #include <dt-bindings/sound/qcom,lpass.h>
+#include <dt-bindings/sound/qcom,q6afe.h>
 #include <linux/input.h>
 #include <linux/module.h>
 #include <linux/of_device.h>
index cfb9c8dbd59991da4ed513295236bc0be29b145a..6d4a43f94d5156d9784d8328c6467905f7435e25 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 // Copyright (c) 2022, Linaro Limited
 
+#include <dt-bindings/sound/qcom,q6afe.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/of_device.h>
index 25b964dea6c56c1782465dc5873a8116307080e6..fed5673b61ba6f9baee873a4bdedc5ac47d5ab82 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (c) 2018, The Linux Foundation. All rights reserved.
  */
 
+#include <dt-bindings/sound/qcom,q6afe.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/of_device.h>
index ce89c0a33ef05872dde574c4219eb07b2a124ccd..dd275123d31d6078ab8d55b29816e9e49b9e38b2 100644 (file)
@@ -2,9 +2,9 @@
 // Copyright (c) 2018, Linaro Limited.
 // Copyright (c) 2018, The Linux Foundation. All rights reserved.
 
+#include <dt-bindings/sound/qcom,q6afe.h>
 #include <linux/module.h>
 #include <sound/soc.h>
-#include "qdsp6/q6afe.h"
 #include "sdw.h"
 
 int qcom_snd_sdw_prepare(struct snd_pcm_substream *substream,
index 6558bf2e14e83d954d06e1fd67ebe74a7a231126..b7e1a5496cfd8ea2a97ec272ecbdc0184b75e328 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 // Copyright (c) 2020, Linaro Limited
 
+#include <dt-bindings/sound/qcom,q6afe.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/of_device.h>