diff mbox

[v4,3/5] ASoC: Remove snd_soc_update_bits_locked()

Message ID 1398165797-22997-4-git-send-email-lars@metafoo.de (mailing list archive)
State New, archived
Headers show

Commit Message

Lars-Peter Clausen April 22, 2014, 11:23 a.m. UTC
There are no users of snd_soc_update_bits_locked() left and it is identical to
snd_soc_update_bits(). So it can be removed.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
 sound/soc/soc-io.c | 20 --------------------
 1 file changed, 20 deletions(-)

Comments

Mark Brown April 22, 2014, 12:25 p.m. UTC | #1
On Tue, Apr 22, 2014 at 01:23:15PM +0200, Lars-Peter Clausen wrote:
> There are no users of snd_soc_update_bits_locked() left and it is identical to
> snd_soc_update_bits(). So it can be removed.

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/soc-io.c b/sound/soc/soc-io.c
index ac64fd7..2ead9ed 100644
--- a/sound/soc/soc-io.c
+++ b/sound/soc/soc-io.c
@@ -241,26 +241,6 @@  int snd_soc_update_bits(struct snd_soc_codec *codec, unsigned int reg,
 EXPORT_SYMBOL_GPL(snd_soc_update_bits);
 
 /**
- * snd_soc_update_bits_locked - update codec register bits
- * @codec: audio codec
- * @reg: codec register
- * @mask: register mask
- * @value: new value
- *
- * Writes new register value, and takes the codec mutex.
- *
- * Returns 1 for change else 0.
- */
-int snd_soc_update_bits_locked(struct snd_soc_codec *codec,
-			       unsigned int reg, unsigned int mask,
-			       unsigned int value)
-{
-	return snd_soc_component_update_bits(&codec->component, reg, mask,
-		value);
-}
-EXPORT_SYMBOL_GPL(snd_soc_update_bits_locked);
-
-/**
  * snd_soc_test_bits - test register for change
  * @codec: audio codec
  * @reg: codec register