From: Guenter Roeck Date: Sun, 6 Jul 2014 18:39:24 +0000 (-0700) Subject: hwmon: (emc2103) Clamp limits instead of bailing out X-Git-Tag: v3.2.64~290 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=831068ee2981914898798c1a7bd7988a2426b844;p=pandora-kernel.git hwmon: (emc2103) Clamp limits instead of bailing out commit f6c2dd20108c35e30e2c1f3c6142d189451a626b upstream. It is customary to clamp limits instead of bailing out with an error if a configured limit is out of the range supported by the driver. This simplifies limit configuration, since the user will not typically know chip and/or driver specific limits. Reviewed-by: Jean Delvare Signed-off-by: Guenter Roeck [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed