]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ASoC: twl6040: use true and false for boolean values
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Sat, 4 Aug 2018 21:53:38 +0000 (16:53 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 6 Aug 2018 11:35:36 +0000 (12:35 +0100)
Return statements in functions returning bool should use true or false
instead of an integer value.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/twl6040.c

index bfd1abd7225377bb381ad967c54b22450aec3a57..94675da514c8f3e83e0680e962a936d33e8eac82 100644 (file)
@@ -148,7 +148,7 @@ static bool twl6040_can_write_to_chip(struct snd_soc_component *component,
        case TWL6040_REG_HFRCTL:
                return priv->dl2_unmuted;
        default:
-               return 1;
+               return true;
        }
 }