diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-04 23:53:10 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-08-06 13:35:31 +0200 |
commit | 965afd3c1dbaf293bfa9452aaf0a7e53d78d07f3 (patch) | |
tree | b3abdc069055a0784b30eb029b476ab46fc225ce /sound/soc/codecs/da7219.c | |
parent | ASoC: wm8996: use true and false for boolean values (diff) | |
download | linux-965afd3c1dbaf293bfa9452aaf0a7e53d78d07f3.tar.xz 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/soc/codecs/da7219.c')
-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; } } |