diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-05 00:55:28 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-08-06 14:35:48 +0300 |
commit | e1ec62b147c2f2deae66e69ee4f7347dc80123ae (patch) | |
tree | a5acdda9bee42749cb65f37e1af6748839f3b0e1 /sound | |
parent | 380ae4ec420304aa59adb36776eaf78aef37192c (diff) | |
download | linux-e1ec62b147c2f2deae66e69ee4f7347dc80123ae.tar.xz |
ASoC: da9055: use true and false for boolean values
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/da9055.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/da9055.c b/sound/soc/codecs/da9055.c index afdf90c78884..f6a7bf9560e7 100644 --- a/sound/soc/codecs/da9055.c +++ b/sound/soc/codecs/da9055.c @@ -1041,9 +1041,9 @@ static bool da9055_volatile_register(struct device *dev, case DA9055_HP_R_GAIN_STATUS: case DA9055_LINE_GAIN_STATUS: case DA9055_ALC_CIC_OP_LVL_DATA: - return 1; + return true; default: - return 0; + return false; } } |