summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-08-04 16:53:10 -0500
committerMark Brown <broonie@kernel.org>2018-08-06 12:35:31 +0100
commit965afd3c1dbaf293bfa9452aaf0a7e53d78d07f3 (patch)
treeb3abdc069055a0784b30eb029b476ab46fc225ce /sound
parenteb086306bc6b42dc2c538ec2350d44a82d1a835b (diff)
downloadlinux-965afd3c1dbaf293bfa9452aaf0a7e53d78d07f3.tar.bz2
ASoC: da7219: 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/da7219.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c
index 980a6a8bf56d..c0144f2f8174 100644
--- a/sound/soc/codecs/da7219.c
+++ b/sound/soc/codecs/da7219.c
@@ -2143,9 +2143,9 @@ static bool da7219_volatile_register(struct device *dev, unsigned int reg)
case DA7219_ACCDET_IRQ_EVENT_B:
case DA7219_ACCDET_CONFIG_8:
case DA7219_SYSTEM_STATUS:
- return 1;
+ return true;
default:
- return 0;
+ return false;
}
}