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>
This commit is contained in:
Gustavo A. R. Silva
2018-01-23 19:42:28 -06:00
committed by Michael Ellerman
parent 0bc0091401
commit 4f256d5614
7 changed files with 17 additions and 14 deletions

View File

@@ -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) {