diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-01-23 19:42:28 -0600 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-01-28 17:21:09 +1100 |
commit | 4f256d561447c6e1bf8b70e19daae08da4279f1c (patch) | |
tree | 9b442a12e7ee24a456f52fe3c05f1d0f8e25576f /drivers/macintosh/windfarm_pm121.c | |
parent | 0bc00914010e3826a3d168d1c879f79800a11bae (diff) | |
download | lwn-4f256d561447c6e1bf8b70e19daae08da4279f1c.tar.gz lwn-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_pm121.c')
-rw-r--r-- | drivers/macintosh/windfarm_pm121.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/macintosh/windfarm_pm121.c b/drivers/macintosh/windfarm_pm121.c index b350fb86ff08..4d72d8f58cb6 100644 --- a/drivers/macintosh/windfarm_pm121.c +++ b/drivers/macintosh/windfarm_pm121.c @@ -246,7 +246,8 @@ enum { static struct wf_control *controls[N_CONTROLS] = {}; /* Set to kick the control loop into life */ -static int pm121_all_controls_ok, pm121_all_sensors_ok, pm121_started; +static int pm121_all_controls_ok, pm121_all_sensors_ok; +static bool pm121_started; enum { FAILURE_FAN = 1 << 0, @@ -806,7 +807,7 @@ static void pm121_tick(void) pm121_create_sys_fans(i); pm121_create_cpu_fans(); - pm121_started = 1; + pm121_started = true; } /* skipping ticks */ |