commit | 1b92adaddd7e96e1ba68d4f17a25747ab8057efe | [log] [tgz] |
---|---|---|
author | Jean Delvare <khali@linux-fr.org> | Fri Oct 17 17:51:14 2008 +0200 |
committer | Jean Delvare <khali@mahadeva.delvare> | Fri Oct 17 17:51:14 2008 +0200 |
tree | afaf38fe358948d2047264d0708cc2515aa07be7 | |
parent | 67712d01929295112b55fedd0b3c13f7d5c34f98 [diff] |
hwmon: (lm85) Simplify RANGE_TO_REG Function RANGE_TO_REG can easily be simplified. Credits go to Herbert Poetzl for indirectly suggesting this to me. I tested that the new implementation returns the same result as the original implementation for all input values. Signed-off-by: Jean Delvare <khali@linux-fr.org> Acked-by: Herbert Poetzl <herbert@13thfloor.at>