summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/windfarm_rm31.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva2018-01-24 02:42:28 +0100
committerMichael Ellerman2018-01-28 07:21:09 +0100
commit4f256d561447c6e1bf8b70e19daae08da4279f1c (patch)
tree9b442a12e7ee24a456f52fe3c05f1d0f8e25576f /drivers/macintosh/windfarm_rm31.c
parentpowerpc/watchdog: Print the NIP in soft_nmi_interrupt() (diff)
downloadkernel-qcow2-linux-4f256d561447c6e1bf8b70e19daae08da4279f1c.tar.gz
kernel-qcow2-linux-4f256d561447c6e1bf8b70e19daae08da4279f1c.tar.xz
kernel-qcow2-linux-4f256d561447c6e1bf8b70e19daae08da4279f1c.zip
macintosh: change some data types from int to bool
Change the data type of the following variables from int to bool across all macintosh drivers: started slots_started pm121_started wf_smu_started Some of these issues were detected with the help of Coccinelle. Suggested-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/macintosh/windfarm_rm31.c')
-rw-r--r--drivers/macintosh/windfarm_rm31.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/macintosh/windfarm_rm31.c b/drivers/macintosh/windfarm_rm31.c
index a0cd9c7f9835..9ce87cc0597f 100644
--- a/drivers/macintosh/windfarm_rm31.c
+++ b/drivers/macintosh/windfarm_rm31.c
@@ -514,7 +514,7 @@ static void rm31_tick(void)
int i, last_failure;
if (!started) {
- started = 1;
+ started = true;
printk(KERN_INFO "windfarm: CPUs control loops started.\n");
for (i = 0; i < nr_chips; ++i) {
if (cpu_setup_pid(i) < 0) {