]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/hwmon/lm75.h
hwmon: (lm75) Add suspend/resume feature
[net-next-2.6.git] / drivers / hwmon / lm75.h
index 63e3f2fb4c21dd4ef6b2063a993e4b5f2e237672..e547a3eb4de31ae03d12b3c17f6320d05df2504a 100644 (file)
     which contains this code, we don't worry about the wasted space.
 */
 
-#include <linux/i2c-sensor.h>
+#include <linux/hwmon.h>
 
 /* straight from the datasheet */
 #define LM75_TEMP_MIN (-55000)
 #define LM75_TEMP_MAX 125000
+#define LM75_SHUTDOWN 0x01
 
 /* TEMP: 0.001C/bit (-55C to +125C)
    REG: (0.5C/bit, two's complement) << 7 */
-static inline u16 LM75_TEMP_TO_REG(int temp)
+static inline u16 LM75_TEMP_TO_REG(long temp)
 {
        int ntemp = SENSORS_LIMIT(temp, LM75_TEMP_MIN, LM75_TEMP_MAX);
        ntemp += (ntemp<0 ? -250 : 250);