commit | f5d43b7a51af16977b260c05435d61fc653f584a | [log] [tgz] |
---|---|---|
author | Eduardo Valentin <eduardo.valentin@ti.com> | Tue Mar 19 10:54:26 2013 -0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Mar 25 11:28:31 2013 -0700 |
tree | b1063bcb909132a1d36fa46011902e44c6350de7 | |
parent | 61603af326d872014d1106141dbf5211c7963cd3 [diff] |
staging: ti-soc-thermal: fix condition to apply hyst While updating talert thresholds, threshold cold must always be lower than threshold hot. This patch fixes the function ti_bandgap_update_alert_threshold to only change the thresholds by applying a hysteresis when they violate this condition. Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>