X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=drivers%2Fmacintosh%2Fwindfarm_pm121.c;h=30e6195e19d4ddca5c25f6d26534e7a5e6c55785;hb=66fc5dff5e4f82c92723202a5de9bdec16a9331f;hp=947d4afa25ca9abfe199ffea35f2233e944c9498;hpb=c4fd308ed62f292518363ea9c6c2adb3c2d95f9d;p=~andy%2Flinux diff --git a/drivers/macintosh/windfarm_pm121.c b/drivers/macintosh/windfarm_pm121.c index 947d4afa25c..30e6195e19d 100644 --- a/drivers/macintosh/windfarm_pm121.c +++ b/drivers/macintosh/windfarm_pm121.c @@ -482,7 +482,7 @@ static s32 pm121_correct(s32 new_setpoint, new_min += correction->offset; new_min = (new_min >> 16) + min; - return max(new_setpoint, max(new_min, 0)); + return max3(new_setpoint, new_min, 0); } static s32 pm121_connect(unsigned int control_id, s32 setpoint)