ASoC: da7219: use true and false for boolean values
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Sat, 4 Aug 2018 21:53:10 +0000 (16:53 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 6 Aug 2018 11:35:31 +0000 (12:35 +0100)
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>
sound/soc/codecs/da7219.c

index 980a6a8bf56d38c2c54d928d3b901c76e20c66db..c0144f2f817468aaa1a7509e118c053f970a91c3 100644 (file)
@@ -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;
        }
 }