X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=common%2Fcmd_dtt.c;h=7783c880ba444f49d7993b84e8d8a8f6c7a68acb;hb=6c6e042ab3bbfb5428e4cdeb38fa27728c63afdd;hp=8da95bf9d39385d486634a34a9388cfcc823751e;hpb=6bf6f114dcdd97ec3f80c2761ed40e31229d6b78;p=oweals%2Fu-boot.git diff --git a/common/cmd_dtt.c b/common/cmd_dtt.c index 8da95bf9d3..7783c880ba 100644 --- a/common/cmd_dtt.c +++ b/common/cmd_dtt.c @@ -25,8 +25,6 @@ #include #include -#if defined(CONFIG_CMD_DTT) - #include #include @@ -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