qlcnic: Bump up the version to 5.1.35
[firefly-linux-kernel-4.4.55.git] / drivers / hwmon / lm75.h
index 89aa9098ba5b9ef1759c904752cff6f9cddf00e7..668ff4721323a22842b94823d17505da6bf68b27 100644 (file)
@@ -36,7 +36,7 @@
    REG: (0.5C/bit, two's complement) << 7 */
 static inline u16 LM75_TEMP_TO_REG(long temp)
 {
-       int ntemp = SENSORS_LIMIT(temp, LM75_TEMP_MIN, LM75_TEMP_MAX);
+       int ntemp = clamp_val(temp, LM75_TEMP_MIN, LM75_TEMP_MAX);
        ntemp += (ntemp < 0 ? -250 : 250);
        return (u16)((ntemp / 500) << 7);
 }