]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_dtt.c
OMAP3: Zoom2: Fix ARM relocation support
[karo-tx-uboot.git] / common / cmd_dtt.c
index 8da95bf9d39385d486634a34a9388cfcc823751e..3388e43ca046acd6ef92cac03ce41f6715135aa4 100644 (file)
 #include <config.h>
 #include <command.h>
 
-#if defined(CONFIG_CMD_DTT)
-
 #include <dtt.h>
 #include <i2c.h>
 
-int do_dtt (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
+int do_dtt (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
 {
        int i;
        unsigned char sensors[] = CONFIG_DTT_SENSORS;
@@ -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",
-         "        - Read temperature from digital thermometer and thermostat.\n"
+         "Read temperature from Digital Thermometer and Thermostat",
+         ""
 );
-
-#endif