ASoC: twl6040: Rename twl6040_is_path_unmuted -> twl6040_can_write_to_chip
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 29 Nov 2013 14:03:43 +0000 (16:03 +0200)
committerMark Brown <broonie@linaro.org>
Thu, 19 Dec 2013 18:37:06 +0000 (18:37 +0000)
Matches more precisely of the functionality.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/twl6040.c

index f2f4bcb2ff71527b6dde8b264be2c99de7bf4c37..ef13a501a7b454ce95164e9cd5582a4e7a432a6c 100644 (file)
@@ -219,8 +219,8 @@ static int twl6040_read_reg_volatile(struct snd_soc_codec *codec,
        return value;
 }
 
-static bool twl6040_is_path_unmuted(struct snd_soc_codec *codec,
-                                   unsigned int reg)
+static bool twl6040_can_write_to_chip(struct snd_soc_codec *codec,
+                                 unsigned int reg)
 {
        struct twl6040_data *priv = snd_soc_codec_get_drvdata(codec);
 
@@ -250,7 +250,7 @@ static int twl6040_write(struct snd_soc_codec *codec,
                return -EIO;
 
        twl6040_write_reg_cache(codec, reg, value);
-       if (twl6040_is_path_unmuted(codec, reg))
+       if (twl6040_can_write_to_chip(codec, reg))
                return twl6040_reg_write(twl6040, reg, value);
        else
                return 0;