From: Radhesh Fadnis Date: Wed, 19 Sep 2012 17:07:49 +0000 (+0300) Subject: staging: omap-thermal: bandgap: fix setting of alert thresholds X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~98 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=463bf503bdab90bf269ad2a70656fe8536ff4933;p=pandora-kernel.git staging: omap-thermal: bandgap: fix setting of alert thresholds There was an error in check for the valid temperature in function temp_to_adc_conversion. The temperature value was compared with higher limit for less than condition as well, resulting in returning -EINVAL. Corrected the check condition to properly check for lower and higher temperature limits. Signed-off-by: Radhesh Fadnis Signed-off-by: Eduardo Valentin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed