summaryrefslogtreecommitdiff
path: root/drivers/hwmon/lm75.c
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2008-07-11 11:50:53 +0200
committerWolfgang Denk <wd@denx.de>2008-07-13 15:26:18 +0200
commit6ecbb45bb027e90c19d63b48e7b0c05acc1a87c0 (patch)
treedb647af285d1d0fedc4dd29d88a8a9cf9fa97156 /drivers/hwmon/lm75.c
parentc78fce699c7ff467ecd841da6a79f065180bf578 (diff)
downloadu-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/lm75.c')
-rw-r--r--drivers/hwmon/lm75.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
index c348517..8051cb2 100644
--- a/drivers/hwmon/lm75.c
+++ b/drivers/hwmon/lm75.c
@@ -27,7 +27,6 @@
#include <common.h>
-#ifdef CONFIG_DTT_LM75
#if !defined(CFG_EEPROM_PAGE_WRITE_ENABLE) || \
(CFG_EEPROM_PAGE_WRITE_BITS < 1)
# error "CFG_EEPROM_PAGE_WRITE_ENABLE must be defined and CFG_EEPROM_PAGE_WRITE_BITS must be greater than 1 to use CONFIG_DTT_LM75"
@@ -36,11 +35,14 @@
#include <i2c.h>
#include <dtt.h>
-
/*
* Device code
*/
#define DTT_I2C_DEV_CODE 0x48 /* ON Semi's LM75 device */
+#define DTT_READ_TEMP 0x0
+#define DTT_CONFIG 0x1
+#define DTT_TEMP_HYST 0x2
+#define DTT_TEMP_SET 0x3
int dtt_read(int sensor, int reg)
{
@@ -200,5 +202,3 @@ int dtt_get_temp(int sensor)
}
return (int)((int16_t) ret / 256);
} /* dtt_get_temp() */
-
-#endif /* CONFIG_DTT_LM75 */