Skip to content

Commit 81ed7d9

Browse files
Jiapeng Chongbroonie
authored andcommitted
ASoC: codecs: wcd-clsh: Remove the unused function
The function wcd_clsh_set_buck_mode() is defined in the wcd-clsh-v2.c file, but not called elsewhere, so remove this unused function. sound/soc/codecs/wcd-clsh-v2.c:133:20: warning: unused function 'wcd_clsh_enable_status'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3348 Reported-by: Abaci Robot <[email protected]> Signed-off-by: Jiapeng Chong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 122d851 commit 81ed7d9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

sound/soc/codecs/wcd-clsh-v2.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,6 @@ static inline void wcd_enable_clsh_block(struct wcd_clsh_ctrl *ctrl,
130130
ctrl->clsh_users = 0;
131131
}
132132

133-
static inline bool wcd_clsh_enable_status(struct snd_soc_component *comp)
134-
{
135-
return snd_soc_component_read(comp, WCD9XXX_A_CDC_CLSH_CRC) &
136-
WCD9XXX_A_CDC_CLSH_CRC_CLK_EN_MASK;
137-
}
138-
139133
static inline void wcd_clsh_set_buck_mode(struct snd_soc_component *comp,
140134
int mode)
141135
{

0 commit comments

Comments
 (0)