diff options
author | Michal Simek <monstr@monstr.eu> | 2008-07-11 11:50:53 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-13 15:26:18 +0200 |
commit | 6ecbb45bb027e90c19d63b48e7b0c05acc1a87c0 (patch) | |
tree | db647af285d1d0fedc4dd29d88a8a9cf9fa97156 /drivers/hwmon/ds1775.c | |
parent | c78fce699c7ff467ecd841da6a79f065180bf578 (diff) | |
download | u-boot-imx-6ecbb45bb027e90c19d63b48e7b0c05acc1a87c0.zip u-boot-imx-6ecbb45bb027e90c19d63b48e7b0c05acc1a87c0.tar.gz u-boot-imx-6ecbb45bb027e90c19d63b48e7b0c05acc1a87c0.tar.bz2 |
hwmon: Cleaning hwmon devices
Clean Makefile
Move device specific values to driver for better reading
Signed-off-by: Michal Simek <monstr@monstr.eu>
Acked-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/hwmon/ds1775.c')
-rw-r--r-- | drivers/hwmon/ds1775.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/hwmon/ds1775.c b/drivers/hwmon/ds1775.c index 0fbb0b4..6a4d8e5 100644 --- a/drivers/hwmon/ds1775.c +++ b/drivers/hwmon/ds1775.c @@ -21,11 +21,14 @@ #include <common.h> -#ifdef CONFIG_DTT_DS1775 #include <i2c.h> #include <dtt.h> #define DTT_I2C_DEV_CODE CFG_I2C_DTT_ADDR /* Dallas Semi's DS1775 device code */ +#define DTT_READ_TEMP 0x0 +#define DTT_CONFIG 0x1 +#define DTT_TEMP_HYST 0x2 +#define DTT_TEMP_OS 0x3 int dtt_read(int sensor, int reg) { @@ -151,6 +154,3 @@ int dtt_get_temp(int sensor) { return (dtt_read(sensor, DTT_READ_TEMP) / 256); } - - -#endif /* CONFIG_DTT_DS1775 */ |