summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorGustavo A. R. Silva2018-08-04 23:53:10 +0200
committerMark Brown2018-08-06 13:35:31 +0200
commit965afd3c1dbaf293bfa9452aaf0a7e53d78d07f3 (patch)
treeb3abdc069055a0784b30eb029b476ab46fc225ce /sound
parentASoC: wm8996: use true and false for boolean values (diff)
downloadkernel-qcow2-linux-965afd3c1dbaf293bfa9452aaf0a7e53d78d07f3.tar.gz
kernel-qcow2-linux-965afd3c1dbaf293bfa9452aaf0a7e53d78d07f3.tar.xz
kernel-qcow2-linux-965afd3c1dbaf293bfa9452aaf0a7e53d78d07f3.zip
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;
}
}