Skip to content

Commit

Permalink
ASoC: Remove snd_soc_update_bits_locked()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
larsclausen authored and broonie committed Apr 22, 2014
1 parent e2c330b commit b0a9f8e
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions sound/soc/soc-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,26 +240,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
Expand Down

0 comments on commit b0a9f8e

Please sign in to comment.