aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/windfarm_pm121.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/macintosh/windfarm_pm121.c')
-rw-r--r--drivers/macintosh/windfarm_pm121.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/macintosh/windfarm_pm121.c b/drivers/macintosh/windfarm_pm121.c
index 947d4afa25ca..30e6195e19d4 100644
--- a/drivers/macintosh/windfarm_pm121.c
+++ b/drivers/macintosh/windfarm_pm121.c
@@ -482,7 +482,7 @@ static s32 pm121_correct(s32 new_setpoint,
482 new_min += correction->offset; 482 new_min += correction->offset;
483 new_min = (new_min >> 16) + min; 483 new_min = (new_min >> 16) + min;
484 484
485 return max(new_setpoint, max(new_min, 0)); 485 return max3(new_setpoint, new_min, 0);
486} 486}
487 487
488static s32 pm121_connect(unsigned int control_id, s32 setpoint) 488static s32 pm121_connect(unsigned int control_id, s32 setpoint)