ASoC: stm32: sai: Remove useless define
authorTang Bin <tangbin@cmss.chinamobile.com>
Wed, 25 May 2022 13:50:23 +0000 (21:50 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 6 Jun 2022 11:38:45 +0000 (12:38 +0100)
STM_SAI_IS_SUB_B(x) and STM_SAI_BLOCK_NAME(x) are
not being used, so remove them.

Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Acked-by: Olivier Moysan <olivier.moysan@st.com>
Link: https://lore.kernel.org/r/20220525135023.6792-1-tangbin@cmss.chinamobile.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/stm/stm32_sai_sub.c

index dd636af..4296fcb 100644 (file)
@@ -45,8 +45,6 @@
 #define STM_SAI_B_ID           0x1
 
 #define STM_SAI_IS_SUB_A(x)    ((x)->id == STM_SAI_A_ID)
-#define STM_SAI_IS_SUB_B(x)    ((x)->id == STM_SAI_B_ID)
-#define STM_SAI_BLOCK_NAME(x)  (((x)->id == STM_SAI_A_ID) ? "A" : "B")
 
 #define SAI_SYNC_NONE          0x0
 #define SAI_SYNC_INTERNAL      0x1