ASoC: remove unused functions

Remove unused function "wsa883x_regcache_sync" and
"wsa883x_resource_acquire".

Change-Id: Ic4dca68671673141be833926305116d8cd881d89
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
这个提交包含在:
Vignesh Kulothungan
2020-01-02 16:13:45 -08:00
父节点 050dd0ef56
当前提交 46c4e1f885
修改 2 个文件,包含 2 行新增12 行删除

查看文件

@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */ /* SPDX-License-Identifier: GPL-2.0-only */
/* /*
* Copyright (c) 2019, The Linux Foundation. All rights reserved. * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
*/ */
#ifndef WSA883X_INTERNAL_H #ifndef WSA883X_INTERNAL_H
@@ -120,6 +120,4 @@ struct wsa883x_priv {
struct notifier_block *nblock, bool enable); struct notifier_block *nblock, bool enable);
}; };
static int32_t wsa883x_resource_acquire(struct snd_soc_component *component,
bool enable);
#endif /* WSA883X_INTERNAL_H */ #endif /* WSA883X_INTERNAL_H */

查看文件

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only // SPDX-License-Identifier: GPL-2.0-only
/* /*
* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved. * Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
*/ */
#include <linux/module.h> #include <linux/module.h>
@@ -664,14 +664,6 @@ int wsa883x_codec_info_create_codec_entry(struct snd_info_entry *codec_root,
} }
EXPORT_SYMBOL(wsa883x_codec_info_create_codec_entry); EXPORT_SYMBOL(wsa883x_codec_info_create_codec_entry);
static void wsa883x_regcache_sync(struct wsa883x_priv *wsa883x)
{
mutex_lock(&wsa883x->res_lock);
regcache_mark_dirty(wsa883x->regmap);
regcache_sync(wsa883x->regmap);
mutex_unlock(&wsa883x->res_lock);
}
static int wsa883x_get_compander(struct snd_kcontrol *kcontrol, static int wsa883x_get_compander(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol) struct snd_ctl_elem_value *ucontrol)
{ {