diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-04 16:55:28 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-08-06 12:35:48 +0100 |
commit | e1ec62b147c2f2deae66e69ee4f7347dc80123ae (patch) | |
tree | a5acdda9bee42749cb65f37e1af6748839f3b0e1 /sound/soc/codecs | |
parent | 380ae4ec420304aa59adb36776eaf78aef37192c (diff) | |
download | op-kernel-dev-e1ec62b147c2f2deae66e69ee4f7347dc80123ae.zip op-kernel-dev-e1ec62b147c2f2deae66e69ee4f7347dc80123ae.tar.gz |
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/soc/codecs')
-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 afdf90c..f6a7bf9 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; } } |