X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fdtt.h;h=6d5534de416815cf5f8884c0155518bbd4904d49;hb=e034ea3b77baf90ab8dde2c1beeb22704b01fb2d;hp=965e82eb04fcbfae01e9e0b9b70d3fa06d383d0c;hpb=1c6fe6eac75d695fde677af8330c0dbe75fb6a2b;p=u-boot diff --git a/include/dtt.h b/include/dtt.h index 965e82eb04..6d5534de41 100644 --- a/include/dtt.h +++ b/include/dtt.h @@ -43,16 +43,17 @@ #define DTT_INDUSTRIAL_MAX_TEMP 85 /* -40 - +85 C */ #define DTT_AUTOMOTIVE_MAX_TEMP 105 /* -40 - +105 C */ -#ifndef CFG_DTT_MAX_TEMP -#define CFG_DTT_MAX_TEMP DTT_COMMERCIAL_MAX_TEMP +#ifndef CONFIG_SYS_DTT_MAX_TEMP +#define CONFIG_SYS_DTT_MAX_TEMP DTT_COMMERCIAL_MAX_TEMP #endif -#ifndef CFG_DTT_HYSTERESIS -#define CFG_DTT_HYSTERESIS 5 /* 5 C */ +#ifndef CONFIG_SYS_DTT_HYSTERESIS +#define CONFIG_SYS_DTT_HYSTERESIS 5 /* 5 C */ #endif #endif /* CONFIG_DTT_ADM1021 */ -extern int dtt_init (void); +extern void dtt_init(void); +extern int dtt_init_one(int); extern int dtt_read(int sensor, int reg); extern int dtt_write(int sensor, int reg, int val); extern int dtt_get_temp(int sensor);