diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2013-11-29 09:03:43 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-12-19 13:37:06 -0500 |
commit | 0d35d080ac93f317b6c47180d75c8e1a8109b4c4 (patch) | |
tree | 64f23b1233919bfdcb8d5ea0c456383d7c05e5b5 | |
parent | 17104049069fc0888f17bb79da5423653e0806a6 (diff) |
ASoC: twl6040: Rename twl6040_is_path_unmuted -> twl6040_can_write_to_chip
Matches more precisely of the functionality.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | sound/soc/codecs/twl6040.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c index f2f4bcb2ff71..ef13a501a7b4 100644 --- a/sound/soc/codecs/twl6040.c +++ b/sound/soc/codecs/twl6040.c | |||
@@ -219,8 +219,8 @@ static int twl6040_read_reg_volatile(struct snd_soc_codec *codec, | |||
219 | return value; | 219 | return value; |
220 | } | 220 | } |
221 | 221 | ||
222 | static bool twl6040_is_path_unmuted(struct snd_soc_codec *codec, | 222 | static bool twl6040_can_write_to_chip(struct snd_soc_codec *codec, |
223 | unsigned int reg) | 223 | unsigned int reg) |
224 | { | 224 | { |
225 | struct twl6040_data *priv = snd_soc_codec_get_drvdata(codec); | 225 | struct twl6040_data *priv = snd_soc_codec_get_drvdata(codec); |
226 | 226 | ||
@@ -250,7 +250,7 @@ static int twl6040_write(struct snd_soc_codec *codec, | |||
250 | return -EIO; | 250 | return -EIO; |
251 | 251 | ||
252 | twl6040_write_reg_cache(codec, reg, value); | 252 | twl6040_write_reg_cache(codec, reg, value); |
253 | if (twl6040_is_path_unmuted(codec, reg)) | 253 | if (twl6040_can_write_to_chip(codec, reg)) |
254 | return twl6040_reg_write(twl6040, reg, value); | 254 | return twl6040_reg_write(twl6040, reg, value); |
255 | else | 255 | else |
256 | return 0; | 256 | return 0; |