From 46c4e1f8856fe3c02dab78c7089395e8844179fd Mon Sep 17 00:00:00 2001 From: Vignesh Kulothungan Date: Thu, 2 Jan 2020 16:13:45 -0800 Subject: [PATCH] ASoC: remove unused functions Remove unused function "wsa883x_regcache_sync" and "wsa883x_resource_acquire". Change-Id: Ic4dca68671673141be833926305116d8cd881d89 Signed-off-by: Vignesh Kulothungan --- asoc/codecs/wsa883x/internal.h | 4 +--- asoc/codecs/wsa883x/wsa883x.c | 10 +--------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/asoc/codecs/wsa883x/internal.h b/asoc/codecs/wsa883x/internal.h index 2fd3589c53..14bc375720 100644 --- a/asoc/codecs/wsa883x/internal.h +++ b/asoc/codecs/wsa883x/internal.h @@ -1,6 +1,6 @@ /* 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 @@ -120,6 +120,4 @@ struct wsa883x_priv { struct notifier_block *nblock, bool enable); }; -static int32_t wsa883x_resource_acquire(struct snd_soc_component *component, - bool enable); #endif /* WSA883X_INTERNAL_H */ diff --git a/asoc/codecs/wsa883x/wsa883x.c b/asoc/codecs/wsa883x/wsa883x.c index 6cc7eaf5cb..171abc6761 100644 --- a/asoc/codecs/wsa883x/wsa883x.c +++ b/asoc/codecs/wsa883x/wsa883x.c @@ -1,6 +1,6 @@ // 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 @@ -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); -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, struct snd_ctl_elem_value *ucontrol) {