diff options
author | Gustavo A. R. Silva | 2018-08-04 16:53:10 -0500 |
---|---|---|
committer | Mark Brown | 2018-08-06 12:35:31 +0100 |
commit | 965afd3c1dbaf293bfa9452aaf0a7e53d78d07f3 (patch) | |
tree | b3abdc069055a0784b30eb029b476ab46fc225ce /sound/soc | |
parent | eb086306bc6b42dc2c538ec2350d44a82d1a835b (diff) |
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/soc')
-rw-r--r-- | sound/soc/codecs/da7219.c | 4 |
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; } } |