ASoC: qcom: Fix trivial code style issues
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 4 Dec 2023 10:00:48 +0000 (11:00 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 18 Dec 2023 14:04:25 +0000 (14:04 +0000)
Fix few trivial code style issues, pointed out by checkpatch, so they do
not get copied to new code (when old code is used as template):

  WARNING: Prefer "GPL" over "GPL v2" - see commit bf7fbeeae6db ("module: Cure the MODULE_LICENSE "GPL" vs. "GPL v2" bogosity")
  WARNING: function definition argument 'struct platform_device *' should also have an identifier name
  ERROR: code indent should use tabs where possible
  WARNING: please, no spaces at the start of a line
  WARNING: Missing a blank line after declarations
  WARNING: unnecessary whitespace before a quoted newline

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://msgid.link/r/20231204100048.211800-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
20 files changed:
sound/soc/qcom/apq8016_sbc.c
sound/soc/qcom/apq8096.c
sound/soc/qcom/common.c
sound/soc/qcom/lpass-apq8016.c
sound/soc/qcom/lpass-cpu.c
sound/soc/qcom/lpass-hdmi.c
sound/soc/qcom/lpass-ipq806x.c
sound/soc/qcom/lpass-platform.c
sound/soc/qcom/lpass-sc7180.c
sound/soc/qcom/lpass.h
sound/soc/qcom/qdsp6/q6afe.c
sound/soc/qcom/qdsp6/q6apm-dai.c
sound/soc/qcom/qdsp6/q6asm.h
sound/soc/qcom/qdsp6/topology.c
sound/soc/qcom/sc7180.c
sound/soc/qcom/sc8280xp.c
sound/soc/qcom/sdm845.c
sound/soc/qcom/sdw.c
sound/soc/qcom/sm8250.c
sound/soc/qcom/storm.c

index efbdbb4dd75380a7c0ac59d2ec1c437238a486cc..4834a56eaa88a54c4a4a28420266196ffc62628a 100644 (file)
@@ -344,4 +344,4 @@ module_platform_driver(apq8016_sbc_platform_driver);
 
 MODULE_AUTHOR("Srinivas Kandagatla <srinivas.kandagatla@linaro.org");
 MODULE_DESCRIPTION("APQ8016 ASoC Machine Driver");
-MODULE_LICENSE("GPL v2");
+MODULE_LICENSE("GPL");
index 7ee6df02b90693cb348589de6a120b40a7f71530..4f6594cc723ce592b668fe82a581594eb1d511c6 100644 (file)
@@ -142,4 +142,4 @@ static struct platform_driver msm_snd_apq8096_driver = {
 module_platform_driver(msm_snd_apq8096_driver);
 MODULE_AUTHOR("Srinivas Kandagatla <srinivas.kandagatla@linaro.org");
 MODULE_DESCRIPTION("APQ8096 ASoC Machine Driver");
-MODULE_LICENSE("GPL v2");
+MODULE_LICENSE("GPL");
index 483bbf53a541518f53d17c7c5d62d99fe7ee92a2..756706d5b4930193cbe8558dbfbf5108b23eb9a8 100644 (file)
@@ -239,4 +239,4 @@ int qcom_snd_wcd_jack_setup(struct snd_soc_pcm_runtime *rtd,
        return 0;
 }
 EXPORT_SYMBOL_GPL(qcom_snd_wcd_jack_setup);
-MODULE_LICENSE("GPL v2");
+MODULE_LICENSE("GPL");
index 8e58e814a95f63bfe37aa44694898728ce3a5726..9005c85f8c5475b4a5632c4266f11b3dac1f22e8 100644 (file)
@@ -305,5 +305,5 @@ static struct platform_driver apq8016_lpass_cpu_platform_driver = {
 module_platform_driver(apq8016_lpass_cpu_platform_driver);
 
 MODULE_DESCRIPTION("APQ8016 LPASS CPU Driver");
-MODULE_LICENSE("GPL v2");
+MODULE_LICENSE("GPL");
 
index 88b80ed45c661061b87601010c295dca4ececbd7..b0f3e02cb043c6c46af732b5d4202af3ed2f51fa 100644 (file)
@@ -1294,4 +1294,4 @@ void asoc_qcom_lpass_cpu_platform_shutdown(struct platform_device *pdev)
 EXPORT_SYMBOL_GPL(asoc_qcom_lpass_cpu_platform_shutdown);
 
 MODULE_DESCRIPTION("QTi LPASS CPU Driver");
-MODULE_LICENSE("GPL v2");
+MODULE_LICENSE("GPL");
index 24b1a7523adb9080abcf20b92683837e353ba6ed..ce753ebc08945a49283cff0c01de7a084c3c9e15 100644 (file)
@@ -251,4 +251,4 @@ const struct snd_soc_dai_ops asoc_qcom_lpass_hdmi_dai_ops = {
 EXPORT_SYMBOL_GPL(asoc_qcom_lpass_hdmi_dai_ops);
 
 MODULE_DESCRIPTION("QTi LPASS HDMI Driver");
-MODULE_LICENSE("GPL v2");
+MODULE_LICENSE("GPL");
index e0e9ad35821c75864114ebe27240be42e7dcb6d5..5c874139f39d4944c4623e9fde1f14d1142b0b9b 100644 (file)
@@ -177,4 +177,4 @@ static struct platform_driver ipq806x_lpass_cpu_platform_driver = {
 module_platform_driver(ipq806x_lpass_cpu_platform_driver);
 
 MODULE_DESCRIPTION("QTi LPASS CPU Driver");
-MODULE_LICENSE("GPL v2");
+MODULE_LICENSE("GPL");
index 333c427cfdb03561272ac2a201a5c79a9b8ec6c6..addd2c4bdd3e8f68d131c8c1d17bcd42c346cf5f 100644 (file)
@@ -1384,4 +1384,4 @@ int asoc_qcom_lpass_platform_register(struct platform_device *pdev)
 EXPORT_SYMBOL_GPL(asoc_qcom_lpass_platform_register);
 
 MODULE_DESCRIPTION("QTi LPASS Platform Driver");
-MODULE_LICENSE("GPL v2");
+MODULE_LICENSE("GPL");
index 22063b83455409e2040a80dd430b37cc3fd9f914..e6bcdf6ed7965976887e0f541bd6ca0de01a1c9f 100644 (file)
@@ -322,4 +322,4 @@ static struct platform_driver sc7180_lpass_cpu_platform_driver = {
 module_platform_driver(sc7180_lpass_cpu_platform_driver);
 
 MODULE_DESCRIPTION("SC7180 LPASS CPU DRIVER");
-MODULE_LICENSE("GPL v2");
+MODULE_LICENSE("GPL");
index 2f222bd4ffcca3da0f83d0948ec063abe3b5f479..27a2bf9a6613936787154dfd9b577f3e01bb9d12 100644 (file)
@@ -398,7 +398,7 @@ struct lpass_pcm_data {
 };
 
 /* register the platform driver from the CPU DAI driver */
-int asoc_qcom_lpass_platform_register(struct platform_device *);
+int asoc_qcom_lpass_platform_register(struct platform_device *pdev);
 void asoc_qcom_lpass_cpu_platform_remove(struct platform_device *pdev);
 void asoc_qcom_lpass_cpu_platform_shutdown(struct platform_device *pdev);
 int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev);
index 91d39f6ad0bd9c9a35aad9bd2f2d26eadeff04f3..ef7557be5d66479ac9a3837edc16d36a0b2cbff7 100644 (file)
@@ -553,13 +553,13 @@ struct q6afe_port {
 };
 
 struct afe_cmd_remote_lpass_core_hw_vote_request {
-        uint32_t  hw_block_id;
-        char client_name[8];
+       uint32_t  hw_block_id;
+       char client_name[8];
 } __packed;
 
 struct afe_cmd_remote_lpass_core_hw_devote_request {
-        uint32_t  hw_block_id;
-        uint32_t client_handle;
+       uint32_t  hw_block_id;
+       uint32_t client_handle;
 } __packed;
 
 
index b799ac7246279e609113e8eadca06314ab07989c..052e40cb38feca032752784545a4a07332369054 100644 (file)
@@ -134,7 +134,7 @@ static void event_handler(uint32_t opcode, uint32_t token, uint32_t *payload, vo
                prtd->state = Q6APM_STREAM_STOPPED;
                break;
        case APM_CLIENT_EVENT_DATA_WRITE_DONE:
-               spin_lock_irqsave(&prtd->lock, flags);
+               spin_lock_irqsave(&prtd->lock, flags);
                prtd->pos += prtd->pcm_count;
                spin_unlock_irqrestore(&prtd->lock, flags);
                snd_pcm_period_elapsed(substream);
@@ -143,7 +143,7 @@ static void event_handler(uint32_t opcode, uint32_t token, uint32_t *payload, vo
 
                break;
        case APM_CLIENT_EVENT_DATA_READ_DONE:
-               spin_lock_irqsave(&prtd->lock, flags);
+               spin_lock_irqsave(&prtd->lock, flags);
                prtd->pos += prtd->pcm_count;
                spin_unlock_irqrestore(&prtd->lock, flags);
                snd_pcm_period_elapsed(substream);
index 0103d8dae5dae654ee5cca2f678b59845ebd953d..519e1b3a3f7c66d5a9c3d3f1c696be05de8f446a 100644 (file)
@@ -35,16 +35,16 @@ enum {
 #define ASM_LAST_BUFFER_FLAG           BIT(30)
 
 struct q6asm_flac_cfg {
-        u32 sample_rate;
-        u32 ext_sample_rate;
-        u32 min_frame_size;
-        u32 max_frame_size;
-        u16 stream_info_present;
-        u16 min_blk_size;
-        u16 max_blk_size;
-        u16 ch_cfg;
-        u16 sample_size;
-        u16 md5_sum;
+       u32 sample_rate;
+       u32 ext_sample_rate;
+       u32 min_frame_size;
+       u32 max_frame_size;
+       u16 stream_info_present;
+       u16 min_blk_size;
+       u16 max_blk_size;
+       u16 ch_cfg;
+       u16 sample_size;
+       u16 md5_sum;
 };
 
 struct q6asm_wma_cfg {
index 130b22a34fb3b5ddbf907911db8a27828812f98e..70572c83e1017df794c9857ae3fb98363f935604 100644 (file)
@@ -545,6 +545,7 @@ static struct audioreach_module *audioreach_parse_common_tokens(struct q6apm *ap
 
        if (mod) {
                int pn, id = 0;
+
                mod->module_id = module_id;
                mod->max_ip_port = max_ip_port;
                mod->max_op_port = max_op_port;
@@ -1271,7 +1272,7 @@ int audioreach_tplg_init(struct snd_soc_component *component)
 
        ret = request_firmware(&fw, tplg_fw_name, dev);
        if (ret < 0) {
-               dev_err(dev, "tplg firmware loading %s failed %d \n", tplg_fw_name, ret);
+               dev_err(dev, "tplg firmware loading %s failed %d\n", tplg_fw_name, ret);
                goto err;
        }
 
index b0320a74d5088fbae7c65bd8e01dc2c6a0ae16cc..a15f385ede45e2e5068d644eadc447736c71d7f7 100644 (file)
@@ -578,4 +578,4 @@ static struct platform_driver sc7180_snd_driver = {
 module_platform_driver(sc7180_snd_driver);
 
 MODULE_DESCRIPTION("sc7180 ASoC Machine Driver");
-MODULE_LICENSE("GPL v2");
+MODULE_LICENSE("GPL");
index 249a43e1dee3c81651cd8662feee1a32ba5d855f..ebbbb8e6b68c4ee52a876f8f0f5358d558c3d2c0 100644 (file)
@@ -168,4 +168,4 @@ static struct platform_driver snd_sc8280xp_driver = {
 module_platform_driver(snd_sc8280xp_driver);
 MODULE_AUTHOR("Srinivas Kandagatla <srinivas.kandagatla@linaro.org");
 MODULE_DESCRIPTION("SC8280XP ASoC Machine Driver");
-MODULE_LICENSE("GPL v2");
+MODULE_LICENSE("GPL");
index 252a0f0819be1ef8d050eea290e53a22b5bf7f52..75701546b6ea8b4344ac6ef9e9d06e7ce924e283 100644 (file)
@@ -625,4 +625,4 @@ static struct platform_driver sdm845_snd_driver = {
 module_platform_driver(sdm845_snd_driver);
 
 MODULE_DESCRIPTION("sdm845 ASoC Machine Driver");
-MODULE_LICENSE("GPL v2");
+MODULE_LICENSE("GPL");
index 77dbe0c28b29910db1f5e33b08824a88dc3cd782..7f5089bbe0223929bbe3802424b3e16fcb027244 100644 (file)
@@ -160,4 +160,4 @@ int qcom_snd_sdw_hw_free(struct snd_pcm_substream *substream,
        return 0;
 }
 EXPORT_SYMBOL_GPL(qcom_snd_sdw_hw_free);
-MODULE_LICENSE("GPL v2");
+MODULE_LICENSE("GPL");
index f298167c2a2391f6698a6a4704fb614a72e99b7a..d70df72c0160dbb4ecccb5fd04e7ba78e9840fe7 100644 (file)
@@ -182,4 +182,4 @@ static struct platform_driver snd_sm8250_driver = {
 module_platform_driver(snd_sm8250_driver);
 MODULE_AUTHOR("Srinivas Kandagatla <srinivas.kandagatla@linaro.org");
 MODULE_DESCRIPTION("SM8250 ASoC Machine Driver");
-MODULE_LICENSE("GPL v2");
+MODULE_LICENSE("GPL");
index 553165f11d3069d4940cf6d51ce947496ee05901..c8d5ac43a176683da70f792477ef601a29e3d778 100644 (file)
@@ -140,4 +140,4 @@ static struct platform_driver storm_platform_driver = {
 module_platform_driver(storm_platform_driver);
 
 MODULE_DESCRIPTION("QTi IPQ806x-based Storm Machine Driver");
-MODULE_LICENSE("GPL v2");
+MODULE_LICENSE("GPL");