]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/hwmon/lm73.c
rename CFG_ macros to CONFIG_SYS
[people/ms/u-boot.git] / drivers / hwmon / lm73.c
index 98e8bd298476e4150811ebdbd0482e6893b75dd9..7b5d893ff26447f1d7de3ac5aacef40cf8f1c3da 100644 (file)
  * Device code
  */
 #define DTT_I2C_DEV_CODE 0x48  /* National Semi's LM73 device */
+#define DTT_READ_TEMP          0x0
+#define DTT_CONFIG             0x1
+#define DTT_TEMP_HIGH          0x2
+#define DTT_TEMP_LOW           0x3
+#define DTT_CONTROL            0x4
+#define DTT_ID                 0x7
 
 int dtt_read(int const sensor, int const reg)
 {
@@ -118,11 +124,11 @@ static int _dtt_init(int const sensor)
        /*
         * Setup THIGH (upper-limit) and TLOW (lower-limit) registers
         */
-       val = CFG_DTT_MAX_TEMP << 7;
+       val = CONFIG_SYS_DTT_MAX_TEMP << 7;
        if (dtt_write(sensor, DTT_TEMP_HIGH, val))
                return -1;
 
-       val = CFG_DTT_MIN_TEMP << 7;
+       val = CONFIG_SYS_DTT_MIN_TEMP << 7;
        if (dtt_write(sensor, DTT_TEMP_LOW, val))
                return -1;
        /*