rtc: isl12022: use true and false for boolean values
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 22 Mar 2018 19:53:28 +0000 (14:53 -0500)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 3 Apr 2018 14:40:46 +0000 (16:40 +0200)
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>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-isl12022.c

index fa5c15d45070c8ab78fb849b209690a3f02eaf3a..890ccfc9e5aabe6cd24f08ccacfb3496a054dfb3 100644 (file)
@@ -201,7 +201,7 @@ static int isl12022_rtc_set_time(struct device *dev, struct rtc_time *tm)
                                return ret;
                }
 
-               isl12022->write_enabled = 1;
+               isl12022->write_enabled = true;
        }
 
        /* hours, minutes and seconds */