From: Martin Peres Date: Thu, 20 Dec 2012 00:32:09 +0000 (+0100) Subject: drm/nouveau/fan: handle the cases where we are outside of the linear zone X-Git-Tag: v3.9-rc1~83^2~10^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a624bafbf11c098a859dba4118a33605bfd25788;p=pandora-kernel.git drm/nouveau/fan: handle the cases where we are outside of the linear zone This fixes a bug where, when temperature is outside of the linear range, fan pwm would be outside of the allowed range ([0, 100]) and could get negative in some cases. It seems like a regression that happened when we re-worked the fan management logic before merging. Tested-by: Ozan Çağlayan Signed-off-by: Martin Peres Signed-off-by: Ben Skeggs --- Reading git-diff-tree failed