]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_dtt.c
One more fix for building env_embedded.o
[u-boot] / common / cmd_dtt.c
index 8da95bf9d39385d486634a34a9388cfcc823751e..7783c880ba444f49d7993b84e8d8a8f6c7a68acb 100644 (file)
@@ -25,8 +25,6 @@
 #include <config.h>
 #include <command.h>
 
-#if defined(CONFIG_CMD_DTT)
-
 #include <dtt.h>
 #include <i2c.h>
 
@@ -38,7 +36,7 @@ int do_dtt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 
        /* switch to correct I2C bus */
        old_bus = I2C_GET_BUS();
-       I2C_SET_BUS(CFG_DTT_BUS_NUM);
+       I2C_SET_BUS(CONFIG_SYS_DTT_BUS_NUM);
 
        /*
         * Loop through sensors, read
@@ -57,8 +55,6 @@ int do_dtt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
 
 U_BOOT_CMD(
          dtt,  1,      1,      do_dtt,
-         "dtt     - Digital Thermometer and Themostat\n",
+         "Digital Thermometer and Thermostat",
          "        - Read temperature from digital thermometer and thermostat.\n"
 );
-
-#endif