spi: tegra20-slink: use true and false for boolean values
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 5 Mar 2018 23:53:39 +0000 (17:53 -0600)
committerMark Brown <broonie@kernel.org>
Tue, 6 Mar 2018 14:20:37 +0000 (14:20 +0000)
Assign true or false to boolean variables instead of an integer value.

This issue was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-tegra20-slink.c

index 3e12d5f87ee4412b086649c8f2312fb3cc9e30a8..6f7b946b5cedf103cbed9886d7ec3079bbdcf6de 100644 (file)
@@ -276,10 +276,10 @@ static unsigned tegra_slink_calculate_curr_xfer_param(
        tspi->bytes_per_word = DIV_ROUND_UP(bits_per_word, 8);
 
        if (bits_per_word == 8 || bits_per_word == 16) {
-               tspi->is_packed = 1;
+               tspi->is_packed = true;
                tspi->words_per_32bit = 32/bits_per_word;
        } else {
-               tspi->is_packed = 0;
+               tspi->is_packed = false;
                tspi->words_per_32bit = 1;
        }
        tspi->packed_size = tegra_slink_get_packed_size(tspi, t);