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:

committed by
Michael Ellerman

parent
0bc0091401
commit
4f256d5614
@@ -140,7 +140,8 @@ static struct wf_control *fan_system;
|
||||
static struct wf_control *cpufreq_clamp;
|
||||
|
||||
/* Set to kick the control loop into life */
|
||||
static int wf_smu_all_controls_ok, wf_smu_all_sensors_ok, wf_smu_started;
|
||||
static int wf_smu_all_controls_ok, wf_smu_all_sensors_ok;
|
||||
static bool wf_smu_started;
|
||||
|
||||
/* Failure handling.. could be nicer */
|
||||
#define FAILURE_FAN 0x01
|
||||
@@ -549,7 +550,7 @@ static void wf_smu_tick(void)
|
||||
DBG("wf: creating control loops !\n");
|
||||
wf_smu_create_sys_fans();
|
||||
wf_smu_create_cpu_fans();
|
||||
wf_smu_started = 1;
|
||||
wf_smu_started = true;
|
||||
}
|
||||
|
||||
/* Skipping ticks */
|
||||
|
Reference in New Issue
Block a user