Browse Source

ASoC: remove unused functions

Remove unused function "wsa883x_regcache_sync" and
"wsa883x_resource_acquire".

Change-Id: Ic4dca68671673141be833926305116d8cd881d89
Signed-off-by: Vignesh Kulothungan <[email protected]>
Vignesh Kulothungan 5 years ago
parent
commit
46c4e1f885
2 changed files with 2 additions and 12 deletions
  1. 1 3
      asoc/codecs/wsa883x/internal.h
  2. 1 9
      asoc/codecs/wsa883x/wsa883x.c

+ 1 - 3
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 */

+ 1 - 9
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 <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);
 
-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)
 {