From: Guenter Roeck Date: Fri, 13 Sep 2013 17:38:09 +0000 (-0700) Subject: hwmon: (adt7462) Use error value returned from find_trange_value() X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~18^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb34c0da646530425d9ae0e6e6229e641469da4c;p=pandora-kernel.git hwmon: (adt7462) Use error value returned from find_trange_value() find_trange_value() returns -ENODEV in case of errors, only to have it ignored and replaced with -EINVAL. Make it return -EINVAL and use it. Signed-off-by: Guenter Roeck Reviewed-by: Jean Delvare --- Reading git-diff-tree failed