<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 16, 2023 at 8:36 PM Alexander Stein <<a href="mailto:alexander.stein@ew.tq-group.com">alexander.stein@ew.tq-group.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Instead of copying the driver name manually, use a common define.<br>
No functional change.<br>
<br>
Signed-off-by: Alexander Stein <<a href="mailto:alexander.stein@ew.tq-group.com" target="_blank">alexander.stein@ew.tq-group.com</a>><br></blockquote><div><br></div><div>Acked-by: Shengjiu Wang <<a href="mailto:shengjiu.wang@gmail.com">shengjiu.wang@gmail.com</a>></div><div><br></div><div>Best regards</div><div>wang shengjiu </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
---<br>
sound/soc/fsl/fsl-asoc-card.c | 6 ++++--<br>
1 file changed, 4 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c<br>
index cdfca9fd1eb0..e956abfd50f8 100644<br>
--- a/sound/soc/fsl/fsl-asoc-card.c<br>
+++ b/sound/soc/fsl/fsl-asoc-card.c<br>
@@ -28,6 +28,8 @@<br>
#include "../codecs/wm8994.h"<br>
#include "../codecs/tlv320aic31xx.h"<br>
<br>
+#define DRIVER_NAME "fsl-asoc-card"<br>
+<br>
#define CS427x_SYSCLK_MCLK 0<br>
<br>
#define RX 0<br>
@@ -915,7 +917,7 @@ MODULE_DEVICE_TABLE(of, fsl_asoc_card_dt_ids);<br>
static struct platform_driver fsl_asoc_card_driver = {<br>
.probe = fsl_asoc_card_probe,<br>
.driver = {<br>
- .name = "fsl-asoc-card",<br>
+ .name = DRIVER_NAME,<br>
.pm = &snd_soc_pm_ops,<br>
.of_match_table = fsl_asoc_card_dt_ids,<br>
},<br>
@@ -924,5 +926,5 @@ module_platform_driver(fsl_asoc_card_driver);<br>
<br>
MODULE_DESCRIPTION("Freescale Generic ASoC Sound Card driver with ASRC");<br>
MODULE_AUTHOR("Nicolin Chen <<a href="mailto:nicoleotsuka@gmail.com" target="_blank">nicoleotsuka@gmail.com</a>>");<br>
-MODULE_ALIAS("platform:fsl-asoc-card");<br>
+MODULE_ALIAS("platform:" DRIVER_NAME);<br>
MODULE_LICENSE("GPL");<br>
-- <br>
2.34.1<br>
<br>
</blockquote></div></div>